Chartjs-Chartjs – show hide specific dataset with click on element outside graph

4👍

This should do the trick

chart.data.datasets.forEach(function(e) {
    e.hidden = true;
});

Leave a comment