Home forums Chart Support Remove all striplines by click

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #28029


    is it possible to remove all striplines by click like in the example on https://canvasjs.com/docs/charts/methods/stripline/remove/ ?

    chart.axisX[0].stripLines.remove(); gives an error .stripLines.remove is not a function

    And how to enable them again by click? Like toogle data series.



    Only that work for me:

     var countstriplines = chart.axisX[0].stripLines.length;
            for(var i = 0; i < countstriplines; i++) {


    Please take a look at this JSFiddle.

    Vishwas R
    Team CanvasJS


    Great, thank you!

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

You must be logged in to reply to this topic.