Home › Forums › Chart Support › Stripline › Reply To: Stripline
@malvika,
You can use the axis addTo method to add stripLines dynamically on click. To remove the same you can use the remove method of stripLines as shown in the code snippet below –
Adding stripLines – chart.axisX[0].addTo("stripLines", {value: 50, showOnTop: true});
chart.axisX[0].addTo("stripLines", {value: 50, showOnTop: true});
Removing stripLines – chart.axisX[0].stripLines[1].remove();
chart.axisX[0].stripLines[1].remove();
___________ Indranil Deo Team CanvasJS