-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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(plugin-chart-echarts): missing value format in mixed timeseries #21044
fix(plugin-chart-echarts): missing value format in mixed timeseries #21044
Conversation
9de6700
to
e63c41e
Compare
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
@@ -82,8 +83,9 @@ export const Timeseries = ({ width, height }) => { | |||
logAxis: boolean('Log axis', false), | |||
xAxisTimeFormat: 'smart_date', | |||
tooltipTimeFormat: 'smart_date', | |||
yAxisFormat: 'SMART_NUMBER', | |||
yAxisFormat: '$,.2f', |
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.
Can this be a knob too? (either select
or text
)
47bc2b8
to
9bcf219
Compare
Codecov Report
@@ Coverage Diff @@
## master #21044 +/- ##
==========================================
- Coverage 66.28% 66.27% -0.01%
==========================================
Files 1770 1770
Lines 67497 67509 +12
Branches 7171 7177 +6
==========================================
+ Hits 44738 44743 +5
- Misses 20928 20932 +4
- Partials 1831 1834 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
…pache#21044) (cherry picked from commit f2478c8)
SUMMARY
When we show values for a mixed time series chart (stacked bar + line chart), the value format won't be reflected in the values shown in the chart.
This commit updates mixed-timeseries' transformProps to include the missing formatter with dependent's attributes.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
After:
TESTING INSTRUCTIONS
storybook
ADDITIONAL INFORMATION