You must be logged in to post your query.
Home › Forums › Chart Support › Turning on or off linepairs
Tagged: turning off linepairs
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); //console.log(e); if (typeof (e.dataSeries.visible) === “undefined” || e.dataSeries.visible) { e.dataSeries.visible = false; } else { e.dataSeries.visible = true; } chart1.render (); }
@kerrith,
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
You must be logged in to reply to this topic. Login/Register