此代码允许我绘图,但是如何在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
});
}