[Chartjs]-Chart js disable popup

7๐Ÿ‘

โœ…

You can turn off tooltips (and the associated redraw) by using the showTooltips option

var myPieChart = new Chart(ctx).Doughnut(data, {
    showTooltips: false
});

3๐Ÿ‘

For chart.js v2, the new way to do it is to pass an empty events array to the options.

your options:

let chartOptions = {
    responsive: true,
    events: [],
    ...
};

http://www.chartjs.org/docs/#chart-configuration-common-chart-configuration

Leave a comment