Chartjs-To remove error message when user clicked on legend label

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;

Leave a comment