dhammucool / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

Enhancement: Major and minor ticks and corresponding gridlines #328

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In short, the same facilities as in Excel would be great.

I'm trying to Ajax-ify a PHP application currently using Open Flash Charts.
Flot works very well, but major/minor gridlines is a desired feature not
easy to replicate.

Original issue reported on code.google.com by graham...@orange.fr on 30 Mar 2010 at 6:31

GoogleCodeExporter commented 8 years ago
It seems the only way to do this without touching the library is to write a 
complete
replacement for draw() - the draw hooks are called after the series are drawn, 
so one
cannot add modified gridlines under the plot. Not something I want to do.

I think the best option is to add a drawgrid hook which is called according to 
the
value of grid.aboveData regardless of grid.show, but after drawGrid so one has 
the
choice of adding something to the grid or replacing the function completely.

This would give scope for a plugin to improve grid functionality while resting
compatible with existing applications.

Original comment by graham...@orange.fr on 4 Apr 2010 at 8:47

GoogleCodeExporter commented 8 years ago
The code to add the new hook is trivial (thanks to good design of the library), 
and I
was able to achieve what I wanted by copying and modifying setupGrid().

Original comment by graham...@orange.fr on 7 Apr 2010 at 5:22

GoogleCodeExporter commented 8 years ago
I'd definitely like the grid code to be more flexible, both configuration-wise 
and
with respect to replacing it entirely.

Original comment by olau%iol...@gtempaccount.com on 12 Apr 2010 at 1:07

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Indeed, support for minor ticks (grid lines without labels) would be great. 
Thanks for making this excellent library available!

Original comment by sti...@gmail.com on 30 Dec 2010 at 11:00

GoogleCodeExporter commented 8 years ago
Hi..I'm not very familiar with the usage of this library..I also have an 
assignment in which i need to draw major and minor grid lines using flot..Could 
you please help me out? 

Original comment by gouri.na...@gmail.com on 8 Jun 2011 at 5:10

GoogleCodeExporter commented 8 years ago
Hi,

Do you get fix for this ? Please provide link or piece of code needed to be 
added to support major and minor grids

Original comment by vivekwa...@gmail.com on 6 Dec 2011 at 7:46

GoogleCodeExporter commented 8 years ago

Original comment by dnsch...@gmail.com on 7 May 2012 at 8:48

GoogleCodeExporter commented 8 years ago
Just so you all know, a workaround was posted in StackExchange for this: 
http://stackoverflow.com/questions/25520793/major-and-minor-ticks-in-flot

Original comment by jonathan...@gmail.com on 7 Jan 2015 at 7:21