frappe / charts

Simple, responsive, modern SVG Charts with zero dependencies
https://frappe.io/charts
MIT License
14.9k stars 716 forks source link

Pie Chart won't render more than 13 slices #356

Open blackmambahk opened 2 years ago

blackmambahk commented 2 years ago

Expected Behaviour

Pie Chart should render the number of slices to match the data The data in the link below has 26 values and labels

Actual Behaviour

With maxSlices set to 13: renders 12 slices plus one for the "rest" slice

Setting maxSlices to any value higher than 13 extra slices are not rendered and the white background shows through So maxSlices=14 one slice is not rendered, maxSlices=15 two slices are not rendered and a white background is shown

Steps to Reproduce:

See sandbox link I am new to frappe so I might have missed something, but I thought I followed the documentation and example code.

NOTE: Add a GIF/Screenshot if required.

Frappé Charts version: 1.16.2 Codepen / Codesandbox: https://codesandbox.io/s/frappe-pie-demo-3v7py