Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Empty State for Doughnut Chart #10122

Closed
log224 opened this issue Feb 2, 2022 · 3 comments · Fixed by #10138
Closed

Add Empty State for Doughnut Chart #10122

log224 opened this issue Feb 2, 2022 · 3 comments · Fixed by #10138

Comments

@log224
Copy link

log224 commented Feb 2, 2022

Feature Proposal

Similar to the way that when a bar chart has no data, the axes and labels are still rendered, maybe for the doughnut the outline of the doughnut with a transparent fill could be used when there isn't any data for the doughnut to render.

Possible Implementation

No response

@etimberg
Copy link
Member

etimberg commented Feb 5, 2022

This could easily be done via a plugin. I'm not sure if this is a feature we want to start with in the core since it needs a lot of customization settings and thus increases the bundle size.

@etimberg
Copy link
Member

etimberg commented Feb 5, 2022

Example of a quick plugin to do this https://jsfiddle.net/89s0jf2d/

@kurkle
Copy link
Member

kurkle commented Feb 5, 2022

I think that plugin could be added to samples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants