plouc / nivo

nivo provides a rich set of dataviz components, built on top of the awesome d3 and React libraries
https://nivo.rocks
MIT License
13.18k stars 1.03k forks source link

The pie chart add padding even when the value of an attribute is 0 #2292

Closed AeshnaU closed 1 year ago

AeshnaU commented 1 year ago

Thanks for using nivo

Before creating an issue...

Are you asking a question?

Please don't file GitHub issues to ask questions. Try to use the discord channel first: https://discord.gg/n7Ft74f.

Describe/explain the bug A clear and concise description of what the bug is.

To Reproduce Please include a test case that demonstrates the issue you're reporting on a platform like codesandbox, I already have several existing examples on codesandbox, you can fork one of them depending on the component you're working on: https://codesandbox.io/u/plouc/sandboxes. This is very critical to maintainers in order to help us see the issue you're seeing.

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

In the data, if any one of the key has 0 value and one has given a value to padAngle then the padding is added even if its part is not visible in the pie-chart since its value is 0. Also if there is only one key that has a nonzero value among all the keys then padding should not be added even if it has some value. Kindly look into the bug and resolve the issue.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

stale[bot] commented 1 year ago

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!