Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

programatically fire a click event for a point on highchart scatter plot

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

Is there any way we can do this?

I've tried firePointClick, the event is coming as undefined, I want the event same as the event which we get when a manual click happens, is there any other way?? or any improvements

like image 629
Strikers Avatar asked Apr 26 '13 09:04

Strikers


1 Answers

It's not part of the API, but could be done using internal API function called firePointEvent that way:

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

To do something similar for dropdown, you can use point.events.click event handler.

like image 58
Paweł Fus Avatar answered Sep 27 '22 22:09

Paweł Fus