0👍
why don’t you use chart onclick event and canvas onclick together. canvas onclick has filter function, chart onclick has show modal.
onClick: function(c,i) {
e = i[0];
var x_value = this.data.labels[e._index];
var y_value = this.data.datasets[0].data[e._index];
var ID = x_value;
var Tip =1;
Source:stackexchange.com