0👍
✅
This can be done through chart.getDatasetMeta(index)
as follows:
let chart = new Chart(ctx, {...});
...
let hidden = chart.getDatasetMeta(datasetIndex).hidden;
Source:stackexchange.com