Chartjs-Vue chartjs no strikethrough on legend click

0👍

It looks like you can tell if a segment is hidden now by looking at the chart object using the _hiddenIndices property:

hidden: chart._hiddenIndices[i] === true,

Working blitz

Alternate way using getDataVisibility per yoduh’s comment:

hidden: !chart.getDataVisibility(i),

Working blitz

Leave a comment