user2030592
user2030592

Reputation: 417

Event after selecting point

is there some event fired when selecting a point on a map? Currently I am using this

series.listen('pointClick', function(event) {
}

but to fire this event you have to double click on a point. the first click selects a point and the second click fires this event.

how can I listen to the "point select event"?

series.listen('pointSelect', function(event) {
}

does not work.

Thanks!

Upvotes: 2

Views: 416

Answers (1)

Roman Lubushkin
Roman Lubushkin

Reputation: 213

Both, pointClick and pointSelect events should work. We have identified this as a bug and will fix it in release 7.13.0, ETA: End of Feb 2017.

For now, please use pointsSelect event. It also works for multi-series chart.

map.listen('pointsSelect', function(e) {});

http://jsfiddle.net/gpd5v5bz/3/

Upvotes: 3

Related Questions