-
Notifications
You must be signed in to change notification settings - Fork 120
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
refactor: add manual sorting for tooltip, legend and rendering #924
Conversation
Codecov Report
@@ Coverage Diff @@
## master #924 +/- ##
==========================================
+ Coverage 70.85% 70.90% +0.05%
==========================================
Files 346 350 +4
Lines 11008 11072 +64
Branches 2424 2437 +13
==========================================
+ Hits 7800 7851 +51
- Misses 3195 3208 +13
Partials 13 13
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Reviewed all the code and have a few comments. Looking at the screenshots and storybook next.
src/chart_types/xy_chart/state/selectors/get_tooltip_values_highlighted_geoms.ts
Outdated
Show resolved
Hide resolved
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.
All screenshots and storybook stories look good 🎉
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.
Changes LGTM.
🎉 This PR is included in version 24.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
fixes #303
Adds a way to sort tooltip, legend and rendered series via chart specification:
The API is currently hidden and not exposed to the final consumer to allow us cleaning this feature once we have found a better type for the SeriesIdentifier.
Although the API is hidden, you can ignore ts errors and using it at your own risk using the following hidden API and types:
An example of usage is:
Notes
The VRTs changes are changes only to the orders of elements in the legend and tooltip