Changing data dynamically for a series in Highcharts

You can update the values dynamically as follows :

chart.series[0].setData([89,71,16,12,14]);

If you want to change both value and label, create an array of arrays:

chart.series[0].setData([['Apple',89], ['Orange',71], ['Banana',16], ['Grapes',12], ['Others',14]]);

JSFiddle Demo to update data on a button click.


you can also go with series.setData(). This will allow you to change the entire data of a particular series.

Here is the API link for it.

Hope this will be of use for you.