如何绘制带有动态数据的Highcharts标志?

时间:2019-11-06 13:35:01

标签: javascript highcharts

此代码允许我绘图,但是如何在x, text, title中传递动态数据?

if (Highcharts.seriesTypes.flags) {
    options.series.push({
        type: 'flags',
        name: 'Events',
        color: '#333333',
        fillColor: 'rgba(255,255,255,0.8)',
        data: [{
            x: a[0], //time in milliseconds
            text: 'Earth Load Restoration',
            title: 'Earth Load Restoration'
        }],
        onSeries: 'kwhdata',
        showInLegend: false
    });
}

0 个答案:

没有答案