Этот код позволяет мне строить графики, но как я могу передать динамические данные в 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
});
}