gmmoraesbr / flot

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

ticksize starts from 0 instead of min #339

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I need to create a graph where the ticksize starts its calculations from the 
specified min instead of starting from 0.

Example.

min: 1.4
max: 4.8
ticksize: .34

I would like my ticks to read 1.4, 1.74, 2.08, etc.

How they are displayed is 1.7, 2.04, 2.38, etc.

Original issue reported on code.google.com by artic...@gmail.com on 27 Apr 2010 at 10:41

Attachments:

GoogleCodeExporter commented 8 years ago
Interesting. The assumption behind the current behaviour is that the ticks 
should be aligned with the base if possible, so if you specify pi as the base, 
then they'll be along pi, 2*pi, etc.

It seems to that you don't care for that - but it also seems relatively easy 
for you to generate the ticks yourself if I'm not mistaken (just define a tick 
generator and start from the min it provides). So I think I'm going to wontfix 
this. I can't think of any easy way to explain the option if I added it, and 
tick generation is already a pretty complex business for most of the Flot user 
base.

Original comment by olau%iol...@gtempaccount.com on 13 Dec 2010 at 4:01

GoogleCodeExporter commented 8 years ago

Original comment by dnsch...@gmail.com on 4 Jun 2012 at 2:41