how to add an onclick event to chartjs chart code example
Example: chart.js on hover and onclick event
onHover: function(event,elements) {
$("#canvas1").css("cursor", elements[0] ? "pointer" : "default");
}
onHover: function(event,elements) {
$("#canvas1").css("cursor", elements[0] ? "pointer" : "default");
}