0
votes

One of my line charts contain values in the range 0..11.5

flot is using yaxis with 0..12

the problem: value 0 is drawn on the axis (see attached image)

Is there a way to tell flot to add a small margin, e.g. use 0.5 margin? or - Is there a way to get the min and max values, so I manually can set xmin and xmax?

flot with zero values on the axis

1

1 Answers

0
votes

There is the autoscaleMargin option for the axis which does what you want. Or you can set min and max values for the axis manually.

The default for autoscaleMargin on the y-axis is 0.02 (you can see that the points are not completely on the axis but slighty above). Increase this to your liking.