Highchart yAxis plotLines 标签位置

Qin*_* Xu 5 highcharts angular

我遇到了重新定位 yAxis.plotLines.label 位置的问题。 在此处输入图片说明

我想将标签从原始位置移动到 plotLine 下。请检查此链接

Highcharts.chart('container', {
    xAxis: {
        tickInterval: 24 * 3600 * 1000, // one day
        type: 'datetime'
    },

    yAxis: {
        plotLines: [{
            color: 'red',
            width: 2,
            value: 100,
            label: {
                text: 'Plot line',
                align: 'right'
            }
        }]
    },

    series: [{
        data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4],
        pointStart: Date.UTC(2010, 0, 1),
        pointInterval: 24 * 3600 * 1000
    }]
});
Run Code Online (Sandbox Code Playgroud)

Dee*_*015 5

检查xAxis.plotLines.label.y调整标签位置

小提琴演示

 yAxis: {
    plotLines: [{
        color: 'red',
        width: 2,
        value: 100,
        label: {
            text: 'Plot line',
            align: 'right',
            y: 20, /*moves label down*/
        }
    }]
},
Run Code Online (Sandbox Code Playgroud)