Home › forums › Using CanvasJS › Chart with Multiple Y Axis and Hide Unhide Data Series on Legend Click
Tagged: Axis, Hide, legend, Multiple Y
This topic contains 8 replies, has 2 voices, and was last updated by oijkn 1 year, 3 months ago.
At first i would like to thank you for this great stuff !!
I use your code in my project and it worked fine until now.
Here is the two examples from your web site :
Multiple Y Axis
Hide Unhide Data Series on Legend Click
Since i added the option maximum: to my axisY2 var the scale no longer hides by clicking in the legend.
Here is my JSfiddle live example
Can you help me to debug it please ?
Any help we be very appreciate, thx :)
In case here is my Stackoverflow question
Thanks for reporting. We are looking into it and get back to you at the earliest.
Thank you for your support, i hope you can solve it :)
Do you have any good news about this issue ? Thx
This is the intended behavior. When you set axis maximum/minimum, axis scale won’t be hidden.
Ok, so how i can manage it, please ? Any alternative ?
Thank you in advance.
As a work-around you can set maximum to null on click of legend. Please check this jsfiddle.
Thank you for putting me in the right way :)
I solved this issue and here an workable example jsfiddle
Tell me if it’s ok for you and i hope that can help someone else :)
You must be logged in to reply to this topic.