eraka
Posts: 123
Joined: Thu Apr 28, 2022 6:55 am

Get previous points when selected a new point

Hi

Can we get previous point vales that were selected on series.points.event.select. like when i select/click i got currently selected points but i also want to compare selected points with the previous selected points.
Is there any way?
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: Get previous points when selected a new point

Hello,

You can create a variable to which, at the very end of the point.events.click() callback function, you will assign the selected point and refer to it in the next calls.

Demo: https://jsfiddle.net/BlackLabel/n5e9r42w/
API: https://api.highcharts.com/highcharts/p ... ents.click

Let me know if you have any further questions!
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/

Return to “Highcharts Gantt”