charts
charts copied to clipboard
Donut chart doesn't work properly when values have big difference
Expected Behaviour
In my example, the donut chart should render the first value, that is 26, as ~0.1% and the second value, that is 40660058, as ~99.99%
Actual Behaviour
In my example, the donut chart renders the first value, that is 26, as 0% and the second value, that is 40660058, as 100%. Thus, the area of the second value superimposed on the area of the first value.
Steps to Reproduce: Create the chart with type 'donut' and set the datasets like `[{ values: [26, 40660058]}]
Screenshot: https://imgur.com/a/94s0mH6
Frappé Charts version: 1.5.2 Codepen / Codesandbox: https://codesandbox.io/s/distracted-carson-11gzw?file=/src/index.js