-
Notifications
You must be signed in to change notification settings - Fork 842
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
[WIP] Part-to-whole comparison chart guidelines #3387
Conversation
retest |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3387/ |
1 similar comment
Preview documentation changes for this PR: https://eui.elastic.co/pr_3387/ |
Can you add this page to the a11y tests? (I realized we should have been doing this on every PR that adds a new page until the testing runs all page by default...) Looks like there'll be just one duplicate ID issue to fix. |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3387/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3387/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3387/ |
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.
The comments I got on pie charts in Lens indicated that the correct default is to show the percent value instead of the numeric value inside the slices, and since it's already supported by the chart library I think you could show both options.
Preview documentation changes for this PR: https://eui.elastic.co/pr_3387/ |
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.
Amazing work! I really like all the explanations and all the interactions. 😍
I just found two small typos. All the rest looks good to me! 🎉
Preview documentation changes for this PR: https://eui.elastic.co/pr_3387/ |
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.
This is fantastic. Left some small grammatical suggestions. Verified previous comments about dark mode were fixed. Looks good to merge once you're happy with it.
Preview documentation changes for this PR: https://eui.elastic.co/pr_3387/ |
1 similar comment
Preview documentation changes for this PR: https://eui.elastic.co/pr_3387/ |
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.
Thank you Caroline for this, I've left a few minor comments but everything else is great.
Preview documentation changes for this PR: https://eui.elastic.co/pr_3387/ |
Co-authored-by: Elizabet Oliveira <elizabet.oliveira@elastic.co>
Co-authored-by: Elizabet Oliveira <elizabet.oliveira@elastic.co>
Co-authored-by: Dave Snider <dave.snider@gmail.com>
Co-authored-by: Dave Snider <dave.snider@gmail.com>
Co-authored-by: Dave Snider <dave.snider@gmail.com>
Co-authored-by: Dave Snider <dave.snider@gmail.com>
Preview documentation changes for this PR: https://eui.elastic.co/pr_3387/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3387/ |
retest |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3387/ |
Upgrades Charts to v. 19.2.0
Pie/Donut/Sunburst/Treemap guidelines
Mostly talks about Pie/Donut charts specifically, but the guidelines apply to most "part-to-whole" comparison charts.
Palette changes
euiPaletteColorBlind()
now accepts two other parameters.sortBy: 'default' | 'natural'
for sorting the colors based on the color wheelsortShift: number
for shifting the starting point of the color wheel (defaults to the green position-100
partition
key specifically for Partition charts that have specific configs.Breaking Changes
A. The
euiPaletteColorBlind()
function was becoming unwieldly with the amount of parameters it can accept. It just wasn't scalable as a simple parameters. Now, the function has one parameter of the object type.B. The sort order for the EUI_CHARTS_THEME_LIGHT/DARK color blind palette now defaults to the "natural" sort order. This means all EUI themed charts, will have a slightly different sorting of colors.
Note to consumers: While this is a breaking change, unless you used the default sort order to match your categories against, there shouldn't be a significant difference.
Other changes
i. Updates the homepage card listing to add one for Charts, Text, and Page layout. Also, I exported the images slightly different than before so they're a bit better looking in dark mode.
ii. Adds
RecursivePartial<>
TS utility for allowing recursive object keys to be optionaliii. Changed EuiImage's
caption
prop to also allow for non-strings, like html elements. I ran into this trying to pass<small>Caption</small>
as the prop to make the text smaller.Checklist
IE11and Firefox