Reputation: 318
I'm trying to update a single value on a column chart. What I'm trying is:
this._chart.series[0].points[3].y = 100;
this._chart.redraw();
This seems to set the value where I want to, but chart isn't changed. The value gets updated when I do:
this._chart.series[0].addPoint(...);
After that the third value is set to 100. What's happening behind addPoint that is different from redraw and gets the value updated in the chart view?
Upvotes: 0
Views: 1265
Reputation: 8186
Use the update method
from the Highchart API to do it:
updateMyChartValue() {
this.chart.series[0].data[3].update({ y: 200 });
}
Upvotes: 1