Home › forums › Using CanvasJS › Removing a Y-Axis
This topic contains 4 replies, has 2 voices, and was last updated by oneworld 1 year ago.
I can dynamically add a Y-Axis using the addTo() method, but how can the Y-Axis be removed dynamically? I tried the remove() method but it is not working.
remove() method doesn’t work on default axis, which means its not possible to remove axisX/axisY.
That makes sense, except that in this scenario I am not trying to remove a default axis, but an extra axis that I just added through the addTo() method. How to remove a non-default Y-axis?
Adding and removing axis using addTo() and remove() respectively seems to be working fine. Please take a look at this jsfiddle.
If you are still facing any issue, kindly create a jsfiddle reproducing the issue so that we can look into it and help you out.
I was doing it wrong. Thank you for the example.
You must be logged in to reply to this topic.