Вопрос

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