Home forums Using CanvasJS How to hide the secondary graph but not the axis label Reply To: How to hide the secondary graph but not the axis label

#22485

Hi Vishwas,
I am not sure why there is a misunderstanding in clear forward things. All those above things I do not need. At least can you able to make it work when the axisY2 graph is not visible? The axisY2 labels should reset or change according to zoom in region same as AxisY when axisY2 is not visible. Do not create loop on chart.data. Just directly access the chart.data[1] for axisY2 graph and make it hidden on toggle button click and axisY2 labels should change accordingly on reset button click when axisY2 should hidden. But in previous solution axisY2 labels did not reset when the graph is not visible. Do not click the toggle button again to make it visible and reset the axisY2 labels. That is a sure bug. Even it should work in all scenarios.

Regards,
Satyabrata