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.
题
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!
解决方案
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.