Home Forums Chart Support Removing a Y-Axis

Removing a Y-Axis

Viewing 5 posts - 1 through 5 (of 5 total)
  • #14307

    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.

    #14311

    @oneworld,

    remove() method doesn’t work on default axis, which means its not possible to remove axisX[0]/axisY[0].


    Vishwas R

    #14312

    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?

    #14315

    @oneworld,

    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.


    Vishwas R

    #14320

    I was doing it wrong. Thank you for the example.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.