Update elastic charts to 20.0.2#3792
Conversation
- update `createTheme` function with theme changes - add `@elastic/charts` under `optionalDependencies`
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3792/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3792/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3792/ |
chandlerprall
left a comment
There was a problem hiding this comment.
@cchaos thoughts on marking this as a breaking change, as the EUI theme configuration would be invalid for previous chart versions?
To be clear, these changes would not throw any errors with respect to the chart, but the styling would be different until these changes are added to kibana. I was hoping to upgrade eui and ec together in the same pr on kibana but I noticed eui is a major version ahead and not sure when y'all plan to upgrade eui in kibana to the latest version. |
Strictly, it's a breaking change. A weird here because the chart theming isn't our main published package. I'd lead toward breaking, tho, as it is more accurate. |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3792/ |
|
@cchaos yes that is fixed in this version. The new padding layout more customizable. The padding layout is now as follows for a left-side axis and is analogous for other sides (i.e. mirrored or rotated) Each of the colors are tied together in terms of visibility. So if the label visibility is set to false, the label and all associated padding is removed with it. |
|
Sorry I thought you were referring to the |
|
Thanks, @nickofthyme. Can you resolve the conflicts on this PR? Then I'll throw you a commit that'll fix the "Sizing" example. |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3792/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3792/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3792/ |
|
retest |
cchaos
left a comment
There was a problem hiding this comment.
👍 LGTM, though I guess we also need a Breaking change changelog item specifying the upgrade in dependency
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3792/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_3792/ |
|
@chandlerprall are you ok with these changes? |
chandlerprall
left a comment
There was a problem hiding this comment.
Thanks @nickofthyme !
- update `@elastic/charts` to version `20.0.2` - update `createTheme` function with theme changes




Summary
createThemefunction with theme changes@elastic/chartsunderoptionalDependenciesThe charts
Themenow allows forinnerandouterpadding of axis title and labels. As well as tick visibility which now removes tick line padding as well.@cchaos feel free to change any of the styles to your liking.
Before
After
Checklist