0

I was looking at this question: Add additional data to a Highcharts series for use in formatters

I want to add hasCustomFlag variable also, but I want it dynamically.

I tried like this:

this.series[0].setOptions("hasCustomFlag ",data.someList);

But it's not working. This is how I'm setting the data:

chart1.series[0].setData(data.someList);
Community
  • 1
  • 1
petko_stankoski
  • 10,459
  • 41
  • 127
  • 231

2 Answers2

1

This is the solution:

chart1.series[0].hasCustomFlag = data.someList;
petko_stankoski
  • 10,459
  • 41
  • 127
  • 231
0

When you define series in the chart object , it initially counts from 0 , so you don't hv to parse the series name inside ,

chart.series[0].setData(array);
Lakshitha Udara
  • 153
  • 1
  • 15