react-chartjs
react-chartjs copied to clipboard
Hidden datasets
I try to hide one of my datasets but it doesn't work
datasets: [
{
...this.state.dataRate.datasets[0],
label: 'hello',
hidden: true,
}
]
Hidden is an option of chartjs version 2 https://www.chartjs.org/docs/latest/configuration/legend.html?h=hidden This library support version 1.1.1 https://github.com/chartjs/Chart.js/tree/v1.1.1/docs