Reputation: 65530
Working with Highcharts, I know how to get one point by ID:
var chart = new Highcharts.Chart(options);
var point = chart.get(code);
But how do I get all the points in a chart as an array?
The reason I want this is so that I can set selected state on the chosen point: point.setState('hover')
and clear it on all the other points.
Upvotes: 0
Views: 1297
Reputation: 4776
in the chart object which you got i.e
var chart = new Highcharts.Chart(options);
you have every aspect about the chart in it
Here is the part where you can find the plotted data
chart.series[0].data
Upvotes: 3