【问题标题】:Flot linegraph whitespaceFlot 折线图空白
【发布时间】:2014-02-05 09:18:12
【问题描述】:

我在flot中做了一个折线图,看起来很不错,但我想稍微改变一下。

我想在线条开始前留一点空格,在图表结束时留一点空格。水平网格线需要已经开始,以便图表看起来更宽敞。

感谢您的回答!

【问题讨论】:

    标签: whitespace flot linegraph


    【解决方案1】:

    设置明确的 xaxis/yaxis 最小值和最大值,如文档的 Customizing the Axes 部分所述。

    对于垂直空间,另一种可能性是使用 autoscaleMargin,如 this other question 中所述。

    【讨论】: