sangltdn / flot

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

Even margin on x axis #255

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I've made a line-chart and i'm using time mode on the x axis. It's working
but i'd want the points to be distributed with an even margin on the x-axis.

For example let's say i've got 3 points.

The x-values on these points are 7am,9am and 10am.
The 7am point will be placed to the left, the second point will be placed
somewhere between the middle and the right end of the chart. The last point
will be placed to the right.

So what i want is to distribute these point even, meaning that in this case
the first point would be to the left, the second point exactly in the
middle and the last point to the right, no matter what the x-values are.

Original issue reported on code.google.com by google...@hotmail.se on 6 Nov 2009 at 5:30

GoogleCodeExporter commented 9 years ago
Distributing points evenly regardless of value goes against the purpose of an 
axis.  Essentially you don't want a time axis, just the ability to format the 
ticks as text.  Supplying a custom tick formatter is the correct way to do that.

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

GoogleCodeExporter commented 9 years ago

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