Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chart JS dataset disabled by default

Tags:

chart.js

When you click on the legend of a chart you can disable the display of that dataset. Is there a way of starting the chart display with a dataset turned off? This is version 2 + of chart.js

like image 240
Rich Dominelli Avatar asked Dec 06 '25 06:12

Rich Dominelli


1 Answers

Found buried in the commit logs that you can add hidden:true, to a data set to disable it by default.

like image 194
Rich Dominelli Avatar answered Dec 08 '25 14:12

Rich Dominelli