Highchart yAxis plotLines标签位置

时间:2017-09-26 04:48:50

标签: angular highcharts

我遇到了重新定位yAxis.plotLines.label位置的问题。 enter image description here

我想将标签从原始位置移动到plotLine下面。 请查看此link

--experimental-modules

1 个答案:

答案 0 :(得分:1)

选中xAxis.plotLines.label.y以调整标签位置

Fiddle演示

 yAxis: {
    plotLines: [{
        color: 'red',
        width: 2,
        value: 100,
        label: {
            text: 'Plot line',
            align: 'right',
            y: 20, /*moves label down*/
        }
    }]
},