【问题标题】:multiple Y axis - margin多个 Y 轴 - 边距
【发布时间】:2016-12-09 01:28:54
【问题描述】:

我的图表上有多个 Y 轴,它们没有标题。我找不到允许我在轴之间添加一点空间的属性。可能吗 ?这就是我现在所拥有的。正如你所看到的,它看起来非常压扁。

【问题讨论】:

    标签: highcharts


    【解决方案1】:

    您可以使用offset 属性。

    例子:

      yAxis: [{
            offset: 0,
            lineColor: Highcharts.getOptions().colors[0],
      title: { text: 0 }
        },{
            offset: 50,
            lineColor: Highcharts.getOptions().colors[1],
      title: { text: 0 }
        },{
            offset: 100,
            lineColor: Highcharts.getOptions().colors[2],
      title: { text: 0 }
        }]
    

    (可能还需要调整图表边距以适应您的设置)

    小提琴:

    参考:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-06
      • 1970-01-01
      • 1970-01-01
      • 2020-09-02
      • 1970-01-01
      • 2020-07-19
      相关资源
      最近更新 更多