Answer the question
In order to leave comments, you need to log in
How to update series data in highcharts vue?
How to update data dynamically with highcharts vue? All examples and documentation show only static options, but how can I update them on click?
<highcharts :options="chartOptions"></highcharts>
<button @click='updateChart'>update</button>
data() {
return {
chartOptions: {
series: [{
data: [1,2,3]
}],
},
method: updateChart(){
this.chartOptions.update(
this.series.data[0]= 4
)
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question