Home Forums Chart Support Turning on or off linepairs

Turning on or off linepairs

Viewing 2 posts - 1 through 2 (of 2 total)
  • #36871


    Dear Team,

    I’d like to turn of pairs of graphlines
    like line 0 and 1, 2 and 3 etc.

    I currently use the function below per graphline.

    itemclick: function (e)
    //console.log(“legend click: ” + e.dataPointIndex);
    if (typeof (e.dataSeries.visible) === “undefined” || e.dataSeries.visible)
    e.dataSeries.visible = false;
    e.dataSeries.visible = true;
    chart1.render ();



    Based on your requirement, it seems like you are trying to hide/unhide a group of dataSeries using itemclick property. If so, please take a look at this forum page for an example with complete code.

    In case this doesn’t fulfill your requirement, kindly brief us further about your requirements so that we can understand the scenario better and help you out.

    Adithya Menon
    Team CanvasJS

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

You must be logged in to reply to this topic.