-
Notifications
You must be signed in to change notification settings - Fork 14k
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
fix(explore): Pie chart label formatting when series is temporal #18216
Conversation
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.
LGTM!
Codecov Report
@@ Coverage Diff @@
## master #18216 +/- ##
===========================================
+ Coverage 51.64% 66.05% +14.40%
===========================================
Files 1591 1591
Lines 62423 62423
Branches 6287 6287
===========================================
+ Hits 32240 41234 +8994
+ Misses 28561 19567 -8994
Partials 1622 1622
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
SUMMARY
When the label formatting was deciding whether to use number formatter or time formatter, it first checked if value is a number and if not, it checked if value is Date or column type is temporal. Timestamp values are numbers, so the first condition was true and number formatter was being used for timestamps. This PR switches the order of checks so that we first check if column is temporal.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before: see linked issue
After:
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION
CC @rusackas
https://app.shortcut.com/preset/story/34104/gh-13293-prod-37-pie-chart-date-format