dizzy
Posts: 79
Joined: Mon Aug 01, 2022 5:28 pm

Range Slider color

Hi,
when i change the color of my series, the range slider color also changes. I'd like it for that not to happen..for it to keep it's default color. is that possible?

https://jsfiddle.net/dizzy0ny/3n4hgrf7/3/

Thanks
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Range Slider color

Hi there,

You can change this default behaviour by setting the navigator.series.color property to your desired value.
To get the default color, you can get it from default Highcharts color array by calling this function:

Code: Select all

Highcharts.getOptions().colors[0]
DEMO: https://jsfiddle.net/BlackLabel/tjb0w1mv/

Let me know if that's what you were looking for,
Best regards!
Kamil Musiałowski
Highcharts Developer
dizzy
Posts: 79
Joined: Mon Aug 01, 2022 5:28 pm

Re: Range Slider color

perfect...thank you!
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Range Slider color

You're welcome!

Feel free to contact us anytime.
Kamil Musiałowski
Highcharts Developer

Return to “Highcharts Usage”