question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pie slices with zero size cause additional padding

See original GitHub issue

Describe/explain the bug

Pie slices with zero size cause “gaps” to appear when padAngle is greater than 0.

To Reproduce https://codesandbox.io/s/nivo-pie-slice-zero-padding-issue-bw1ik?file=/src/App.js

Steps to reproduce the behavior:

  1. Include data with zero value.
  2. Set padAngle higher than 0. Padding glitch becomes more apparent with more items with zero value.

Expected behavior

Ideally, a pie slice with zero value would not cause padding to generate. On static charts this can be avoided by removing zero-value items, but on dynamic charts where legends ideally shouldn’t have items removed, sometimes zero-value slices will exist.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
stale[bot]commented, Apr 14, 2021

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!

0reactions
HodayaGruzcommented, Dec 11, 2022

have that problem too, any solutions?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I reduce the padding around a FusionCharts pie chart?
Placing values inside the pie slices are not supported. Though you can force it by negative value in labelDistance attribute. But remember, if ......
Read more >
PieChart with too many slices – amCharts 4 Documentation
We'll look at them each one-by-one. Reduce label padding#. This will allow labels to be packed closer together, so more of them fit...
Read more >
Calculating distance of slice tip from pie center for correct slice ...
Now it gets complicated when I want to add fixed spacing between slices. There are two situations here: Pie chart has a hole...
Read more >
How to add space to pie chart slices - Highcharts
Yes, it's suppose to look like that and with space/padding in ... can also try setting this from the size value for pie.states.hover.halo:...
Read more >
JavaScript Charts: Pie and Doughnut Series - AG Grid
In the example above there's no legend or labels next to pie slices. ... is determined automatically by the chart depending on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found