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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top