Hi,
I want to hide data points but without click legends labels.
For example i tried like this but not working.
var chart = new chart = new CanvasJS.Chart(...);
chart.data[0].visible = false;
chart.data[1].visible = false;
chart.render();
Or hide all function:
function HideAll() {
for (var i = 0; i < chart.data.length; i++) {
chart.data[i].visible = false;
}
chart.render();
}
Or show all function:
function ShowAll() {
for (var i = 0; i < chart.data.length; i++) {
chart.data[i].visible = true;
}
chart.render();
}
-
This topic was modified 6 years, 5 months ago by sonerb.