jakub.s
Posts: 1229
Joined: Fri Dec 16, 2022 11:45 am

Re: Boost in Scatter chart

I don't know all the details of your solution, but this could work like this:

1. You add id to the point

2. You keep an object with point id's and true/false values depending on the point selection state

3. After a point click (workaround with halo), you set the selection state of the point with id)

Regards,
Jakub
Jakub
Highcharts Developer
Zolotoy
Posts: 270
Joined: Tue Apr 14, 2020 10:06 am

Re: Boost in Scatter chart

I need to select a point programmatically, not with a mouse click.
jakub.s
Posts: 1229
Joined: Fri Dec 16, 2022 11:45 am

Re: Boost in Scatter chart

How were you selecting a point programmatically without Boost?

It should require just a few minor changes for the same solution to work with Boost after you add an id to each point as I've shown you.

Regards,
Jakub
Jakub
Highcharts Developer
Zolotoy
Posts: 270
Joined: Tue Apr 14, 2020 10:06 am

Re: Boost in Scatter chart

Just like this: series.point.select(true, true). Is it possible to show an example of selecting a point running Boost?
jakub.s
Posts: 1229
Joined: Fri Dec 16, 2022 11:45 am

Re: Boost in Scatter chart

The logic would be something like this: https://jsfiddle.net/BlackLabel/y0L8ge5d/

Then, you would need to:

1. Add Boost workaround to add id to the point

2. Add halo workaround so that you are able to click the point

3. Make minor modifications to the series.data & enable Boost

4. When knowing the id of the point, you can update the pointsSelection map (string: boolean)

5. Then, you can check if the point is selected in the pointsSelection

Based on the information in the pointsSelection and the function selectPoint(id) you can perform your custom logic.


Regards,
Jakub
Jakub
Highcharts Developer

Return to “Highcharts Usage”