-
Notifications
You must be signed in to change notification settings - Fork 27
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
Donut chart ux updates #1591
Donut chart ux updates #1591
Conversation
const activeValueExists = activeValue !== null && activeValue !== undefined; | ||
const valueToDisplay = activeValueExists ? activeValue : animatedTotalValue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
activeValue
can be 0
and we still want to show that in the center if thats the case.
cff03e4
to
e4a179c
Compare
Chromatic Storybook: https://6062ad4a2d14cd0021539c1b-cbndlaxbsj.chromatic.com/ |
size-limit report 📦
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍩
f789b55
to
0b744a4
Compare
0b744a4
to
26d8dce
Compare
Summary
This summary was generated using OpenAI's gpt-4 with a temperature of 0.5. 🧵 Slack Thread
Claire DeBoer archived this conversation from |
What does this implement/fix?
After some UX discussion we have decided to implement the following changes:
<DonutChart />
to include 0 or negative values in data.<DonutChart />
to show any number of data points.<DonutChart />
wrapper to take full height of container and center contents.Slack thread for context on these changes
Does this close any currently open issues?
What do the changes look like?
Storybook link
http://localhost:6006/?path=/story/polaris-viz-charts-donutchart--default
Before merging
Check your changes on a variety of browsers and devices.
Update the Changelog's Unreleased section with your changes.
Update relevant documentation, tests, and Storybook.
Make sure you're exporting any new shared Components, Types and Utilities from the top level index file of the package