ferengi
Posts: 47
Joined: Fri Apr 27, 2007 9:27 pm

y axis label-color same like serie

Hi...

I have for each serie a separate y axis and the number of series is different every time.

Is there a simple way to get the labels in the same color as the serie in the chart ?

greetz
Helge
bastss
Site Admin
Posts: 1192
Joined: Wed Oct 17, 2018 10:59 am

Re: y axis label-color same like serie

Hi ferengi,

Could you share a demo(jsFiddle) with your example? Because now I am not sure what you want to achieve. Something like this? http://jsfiddle.net/gh/get/library/pure ... /css/axis/

Best regards!
Sebastian Wędzel,
Highcharts Developer
ferengi
Posts: 47
Joined: Fri Apr 27, 2007 9:27 pm

Re: y axis label-color same like serie

sorry....Unfortunately this is not possible !

But I try to explain...

I generate with php a different number of curves and every curve get her own y axis and now I want the the curves and die Labels have the same color.
bastss
Site Admin
Posts: 1192
Joined: Wed Oct 17, 2018 10:59 am

Re: y axis label-color same like serie

ferengi,

Did you mean something like this? DEMO: http://jsfiddle.net/Bastss/wy3op6jz/. Of course, you can upgrade it and write a function to add colors dynamically, but it's more JavaScript work than Highcharts.

Best regards!
Sebastian Wędzel,
Highcharts Developer

Return to “Highcharts Usage”