Enhancement: Major and minor ticks and corresponding gridlines #407

Open
dnschnur opened this Issue Sep 28, 2012 · 6 comments

Projects

None yet

1 participant

@dnschnur
Flot member

Original author: graham...@orange.fr (March 30, 2010 18:31:08)

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: http://code.google.com/p/flot/issues/detail?id=328

@dnschnur
Flot member

From graham...@orange.fr on April 04, 2010 08:47:09
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.

@dnschnur
Flot member

From graham...@orange.fr on April 07, 2010 17:22:48
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().

@dnschnur
Flot member

From olau%iol...@gtempaccount.com on April 12, 2010 13:07:04
I'd definitely like the grid code to be more flexible, both configuration-wise and
with respect to replacing it entirely.

@dnschnur
Flot member

From sti...@gmail.com on December 30, 2010 11:00:54
Indeed, support for minor ticks (grid lines without labels) would be great.
Thanks for making this excellent library available!

@dnschnur
Flot member

From gouri.na...@gmail.com on June 08, 2011 05:10:23
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?

@dnschnur
Flot member

From vivekwa...@gmail.com on December 06, 2011 07:46:24
Hi,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment