代码之家  ›  专栏  ›  技术社区  ›  mukesh.kumar

如何在海图中将Yaxis网格线扩展到整个绘图区域?

  •  0
  • mukesh.kumar  · 技术社区  · 6 年前

    我想增加图表网格线以填充图表的宽度。

    直到现在我都明白了: https://jsfiddle.net/mukeshshamra1201/8pu9a5c4/97/

    我已经使用Y轴属性来实现某些功能,但是我无法计算出其余的功能。

    yAxis: {
        min: 0,
            title : "",
         gridLineDashStyle: 'ShortDash',
        labels: {
        align :"left",
        x:-6,
        y:-3
        }
    }
    


    我想要这样的东西:

    enter image description here

    1 回复  |  直到 6 年前
        1
  •  1
  •   ppotaczek    6 年前

    集合 spacingLeft spacingRight :

    chart: {
        ...
        spacingLeft: 0,
        spacingRight: 0
    }
    

    现场演示: https://jsfiddle.net/BlackLabel/3Lpsz0hd/

    API参考: https://api.highcharts.com/highstock/chart.spacing