8๐
โ
TRY adding the following on-click event handler in your chart options โฆ
options: {
onClick: function(e) {
var element = this.getElementAtEvent(e);
if (element.length) {
console.log(element[0])
}
},
...
}
This should work as far as I can tell
Source:stackexchange.com