Can’t find anything on this. What I want to do is to show percentages in the pie chart. Below worked in Chart.js 1.0
this.chart = new Chart(ctx, {
type: 'pie',
animateRotate: true,
responsive: true,
animationEasing: "easeOut",
animationSteps: 40,
tooltipTemplate: " <%%=label%%>: <%%= value %%> - <%%= numeral(circumference / 6.283).format('(0[.][00]%%)') %%>",
data: topBrowsers
});
@etimberg thanks for the swift response! I’ll try that out!
Edit:
Noticed that it should be
tooltips
instead oftooltip
Complete example