When you add new dataset to an existing Pie chart and previously you hide a data by legend, the data at index (which should be hidden) shouldn’t appear into chart.
Using the CHART.JS sample. hiding a data of pie chart and then adding new dataset, the new dataset does not reflect the legend. See picture:
Before updating a chart, check with the legend that the data will apply the legend.
Steps to Reproduce
Using the CHART.JS sample:
- hide a data of pie chart by legend
- click on “Add Dataset” button
- Chart.js version: 2.9.3
- Browser name and version: FF 70.0.1