Question

I made a linegraph in flot, which looks very nice, but i would like a slight change.

I would like a little whitespace before the line starts, and a little whitespace when the graph ends. The horizontal gridlines need to start already, so that the graph just looks more spacious.

Thanks for your anwsers!

Était-ce utile?

La solution

Set an explicit xaxis/yaxis min and max, as described in the Customizing the Axes section of the docs.

Another possibility, for vertical space, is to use autoscaleMargin, as described in this other question.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top