grand
Posts: 2
Joined: Tue Nov 29, 2022 1:03 pm

range selector is not visible with scrollablePlotArea option

We need the rangeSelector to remain visible when scrolling the diagram, how to do this?
jsFiddle: https://jsfiddle.net/4yfevtr8/3/
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: range selector is not visible with scrollablePlotArea option

Hi grand!
Welcome to our forum and thanks for contacting us with your question!

You have some additional config for opacities, so I won't change it. To achieve your request, you can set a proper y value to rangeSelector on the scroll event. You can check the demo below.

Demo: https://jsfiddle.net/BlackLabel/Lpbj0qhg/
API Reference: https://api.highcharts.com/gantt/rangeSelector.y

Regards!
Hubert Kozik
Highcharts Developer
grand
Posts: 2
Joined: Tue Nov 29, 2022 1:03 pm

Re: range selector is not visible with scrollablePlotArea option

Hi hubert.k. I want like this: https://jsfiddle.net/2bhm9wLk/9/.
But this is achieved only by interacting with the DOM.
Can I do the same in the options or is this functionality not yet available?
I want the rangeSelector to remain visible when opacity is equal 1.
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: range selector is not visible with scrollablePlotArea option

grand,
There is no possibility to achieve it directly from API options, the only way is to handle it with DOM elements - just like you or I did.

Regards!
Hubert Kozik
Highcharts Developer

Return to “Highcharts Gantt”