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

Sunburst: add props.innerRadius similar to how Pie works #1649

Open derrickbeining opened 3 years ago

derrickbeining commented 3 years ago

Is your feature request related to a problem? Please describe. I need to be able to customize the size of the center hole in Sunburst. I noticed that the Pie component is able to do this with the innerRadius prop. Would it be possible to expose a similar customization to Sunburst?

Describe the solution you'd like Add innerRadius: number prop to SunburstProps to expose control over the radius of the center hole in a Sunburst.

Describe alternatives you've considered Retiring to the countryside.

Additional context Screen capture of Pie chart doing what I want Sunburst to be able to do:

https://user-images.githubusercontent.com/25019711/124044076-8ad14300-d9da-11eb-9c6d-7c45b2eef8c0.mov

stale[bot] commented 3 years 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!

adamberro commented 3 years ago

Hi, I am looking for the same functionality. I would be happy to spend some time on this to PR a change. Can you provide any suggestions/guidance for how to approach this?

stale[bot] commented 2 years 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!

jsw commented 2 years ago

Bump. I'd also be interested in retrieving the inner radius as a property in SunburstCustomLayerProps so that I can render a circle in the center.

petrvecera commented 9 months ago

There seems to be PR implementing this feature 👍 https://github.com/plouc/nivo/pull/2219