I have made a bar chart with Chart JS 2.9.4 and I am trying to make a custom function execute when a data label is clicked. At the moment when you click on a data label it toggles this data set from being displayed as shown below.
Toggled On

Toggled Off

This Toggle function wasn't built by me and is include in Chart JS. If I can execute a function or a console.log when one of these labels is toggled, that would be enough for me to continue.