- change name of serie - series.update
- add serie
- remove serie
- update data in serie can be achieved by setData, as you have
Trying to update name and date in a highcharts column chart
-
18-07-2023 - |
Question
I have a highcharts column chart with several sets of data. I need to be able to change the name of a series , the data and add or remove series. I am unable to update an existing series. This is a short example of the code:
var InvChart = $('#Inv-summary').highcharts();
var master=[];
var type1 = "stock";
var range1 = 1100000;
var range2 = -750000;
master.push({name: type1 ,data: [range1, range2]});
InvChart.series[0].setData(master,true);
thanks for any help,
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow