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
- Chartjs-Chart.js – annotation Vertical line moves with mouse in Angular 6
- Chartjs-How to change points/line based on value?
Source:stackexchange.com