dumptyd / vue-css-donut-chart

Lightweight Vue component for drawing pure CSS donut charts
https://dumptyd.github.io/vue-css-donut-chart/
MIT License
129 stars 19 forks source link

Sum of all the sections' values (100.00000000000001) should not exceed `total` (100)" #24

Closed toms427 closed 4 years ago

toms427 commented 4 years ago

I recently stumbled upon this error. If I pass exactly this array to the chart receive this error doesntWork =[{color: 'red', value:8.2}, {color: 'green', value:34.97}, {color: 'blue', value:30.6}, {color: 'yellow', value:26.23}] But if I switch order of the array it works. works = [{color: 'green', value:34.97}, {color: 'red', value:26.23}, {color: 'yellow', value:8.2}, {color: 'blue', value:30.6}, ]

dumptyd commented 4 years ago

@toms427 This has been fixed in version 1.2.0. Thanks for reporting this issue.


Changelog: https://github.com/dumptyd/vue-css-donut-chart/blob/master/CHANGELOG.md Demo: https://dumptyd.github.io/vue-css-donut-chart/