Chartjs-How to turn off tooltip for primeng pie chart?

0👍

the chart.js has options attribute in each chart type so you can customize how you want it to operate.

so in your html, add the element

<p-chart type="doughnut" [data]="data" [options]="options"></p-chart>

and in your ts file, add your options array where you hold the chart customization. And inside of it, add the customization for tooltips as follows:

this.options = {
  tooltips: {
    enabled: false
  },
}

for more info, check doughnut chart documentation

tooltip configuration

Leave a comment