문제

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