Chartjs-Chartjs – show hide specific dataset with click on element outside graph 2 October 2023 by thecoderscamp.com 4👍 This should do the trick chart.data.datasets.forEach(function(e) { e.hidden = true; }); Chartjs-The chart doesn't display the data from my call to the API with Axios Source:stackexchange.com