jdespatis
Posts: 8
Joined: Thu Aug 23, 2018 8:28 am

allowPointSelect with multiple series on multiple y Axis

Hello,

We use a licensed Highchart / Highstock to show energy consumption,
We have a serie (column type) on yAxis 0
and also several series (line type) on yAxis 1 (another yAxis)

I'd like to use allowPointSelect on my line series, but it doesn't work
However all is working, if I hide the column serie on yAxis 0

I've tried also to move my line series on yAxis 0 and the column series on yAxis 1, but same thing, allowPointSelect doesn't work for the line series

=> do you know if it's possible to use allowPointSelect in case of several series in a chart that has 2 yAxis ?
any idea how ?

Thanks for your help !
rafalS
Posts: 2665
Joined: Thu Jun 14, 2018 11:40 am

Re: allowPointSelect with multiple series on multiple y Axis

Hi, jdespatis!

I don't know why it is not working for you (you did not provide me with your code), but it is possible and should work as expected. I have prepared a simplified example of it: https://jsfiddle.net/BlackLabel/akLp4nq6/

Best regards!
Rafal Sebestjanski,
Highcharts Team Lead
jdespatis
Posts: 8
Joined: Thu Aug 23, 2018 8:28 am

Re: allowPointSelect with multiple series on multiple y Axis

Hi rafalS,

Here is a working example: https://jsfiddle.net/jdespatis/8ex456ay/10/

As you can see, green line series have allowPointSelect set to true, but impossible to have the mouse set on the nearest point when I mouse over the line series

Best regards !
rafalS
Posts: 2665
Joined: Thu Jun 14, 2018 11:40 am

Re: allowPointSelect with multiple series on multiple y Axis

jdespatis,

Notice that you have thousands of points and it is really hard to hit the mouse over specific point but... it is possible and, as I said, working as expected:
3Bsdfw7viL.gif
3Bsdfw7viL.gif (623.35 KiB) Viewed 525 times
Rafal
Rafal Sebestjanski,
Highcharts Team Lead
jdespatis
Posts: 8
Joined: Thu Aug 23, 2018 8:28 am

Re: allowPointSelect with multiple series on multiple y Axis

Yes, I can select the 2 points on each green line serie, but as you have noticed, it's hard to do so,

So the idea I'm trying to develop is to make the full green line clickable, and not only those 2 points.
That way, when clicking on the green line, it would trigger the click event on the nearest point of this green line

Can I achieve this with the allowPointSelect attribute no ?

Best regards!
rafalS
Posts: 2665
Joined: Thu Jun 14, 2018 11:40 am

Re: allowPointSelect with multiple series on multiple y Axis

jdespatis,

Set tooltip.shared to false, it's much easier to select point now.
Rafal Sebestjanski,
Highcharts Team Lead
jdespatis
Posts: 8
Joined: Thu Aug 23, 2018 8:28 am

Re: allowPointSelect with multiple series on multiple y Axis

Yes, much better now ;)

Thanks a lot for your help !

Return to “Highcharts Usage”