小编Qin*_* Xu的帖子

Highchart yAxis plotLines 标签位置

我遇到了重新定位 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)

highcharts angular

5
推荐指数
1
解决办法
4188
查看次数

标签 统计

angular ×1

highcharts ×1