Chartjs-Chart.js -> Displaying % on pie chart

0👍

I read about ChartNew.JS, that should contain the function you need (see the sample here: http://fvancop.github.io/ChartNew.js/). Haven’t used it myself yet but I think it could help you out!

0👍

You could transform the data so that it adds up to 100. So if you had a pie chart for fruits and you had 6 oranges, 7 apples, 3 bananas. You would have 16 pieces of fruit total so make the segment for oranges = 6/16, apples = 7/16 and 3/16 bananas

Leave a comment