Using chart.js v2, is it possible to mark a dataset in a line chart as being disabled on initial load?
Didn't find an option for it in the documentation.
Yes, there is a "hidden" flag in ChartJS. eg.
data: { datasets: [ { data: [1,2,3], label: 'My First Dataset', hidden: true, }, ], }
See this issue on GitHub: https://github.com/chartjs/Chart.js/issues/689
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With