Programmatically trigger a click event for a point in a high resolution chart

Actually, I need a little requirement where there is a scatter chart with a list of points and a drop-down list. When I select an item from the drop-down list, its corresponding click on the data point should be launched. And when I select a data point on the chart, some actions should happen, and the drop-down list should be updated according to the selection.

Can this be done?

I tried firePointClick, the event goes as undefined, I want the event to be the same as the event we receive when a manual click occurs, is there any other way? or any improvements

+4
source share
2 answers

It is not part of the API, but can be executed using an internal API function called firePointEvent as follows:

 chart.series[0].data[0].firePointEvent('click', event); 

To do something like this for a dropdown, you can use point.events.click event handler .

+6
source

I think you can do what you want with the select event in points. You can add an event handler to the select event in the diagram ( http://api.highcharts.com/highcharts#series.data.events.select ) but you can also start it using the API: http://api.highcharts.com /highcharts#Point.select () .

+1
source

All Articles