mykola-digtiar / chartjs-plugin-piechart-outlabels

Highly customizable Chart.js plugin that displays labels outside the pie/doughnut chart.
https://piechart-outlabels.netlify.com/sample/
MIT License
52 stars 39 forks source link

percentPrecision Not Work #12

Closed consciousnessdev closed 3 years ago

consciousnessdev commented 5 years ago

This is my data and option

datasets: [ { data: [9670, 21], } ] options: { outlabels: { display: true, text: "%l %p", percentPrecision: 2, } }

it shows data 1 = 100% data 2 = 0%

my desired value is data 1 = 99.78% data 2 = 0.22%

huangdaphne3 commented 4 years ago

not working for me as well

czarnobiaua commented 4 years ago

I’ll second that. I would like to ask for a fix. Thanks!

plnagaraju commented 4 years ago

For me also it is not working.

felipyamorim commented 4 years ago

Try to use %p.2

Tiagochicoo commented 3 years ago

@felipyamorim's sugestion works perfectly. Thank you!

consciousnessdev commented 3 years ago

Try to use %p.2

wow 2020, thanks for suggestion @felipyamorim !

mcheung610 commented 1 year ago

whoa thanks for the tips. Someone should probably update the readme.