I am creating Pie chart using PrimeNg(latest) based on Charts.js 2.7.x in my Angular 6 App. Everything is working perfectly. But I have a requirement where, by default I want to show all the tooltip in pie chart. I want to achieve:this
I found and tried option like below but it is not working. Only Title and legends are working:
<p-chart type="pie" [data]="data" [options]="options"></p-chart>
this.options = {
onAnimationComplete: function() {
this.showTooltip(this.segments, true);
},
tooltipEvents: [],
showTooltips: true,
title: {
display: true,
text: 'My Title',
fontSize: 16
},
legend: {
position: 'bottom'
}
}
Is there any way to achieve this in PrimeNg? AddedPlunk