-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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): use scale for truncating x-axis #26269
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.
You need to pass seriesType
from transformProps
.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #26269 +/- ##
=======================================
Coverage 69.18% 69.18%
=======================================
Files 1945 1945
Lines 75948 75961 +13
Branches 8460 8465 +5
=======================================
+ Hits 52545 52556 +11
- Misses 21218 21220 +2
Partials 2185 2185
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Thanks for catching, too many iterations on how to implement this caused the final commit to miss this change.. |
/testenv up |
@villebro Ephemeral environment spinning up at http://52.13.180.29:8080. Credentials are |
You also need to adjust the mixed timeseries chart 🙂 |
😬 |
/testenv up |
@villebro Ephemeral environment spinning up at http://35.161.50.28:8080. Credentials are |
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
Ephemeral environment shutdown and build artifacts deleted. |
(cherry picked from commit 67468c4)
) (cherry picked from commit 67468c4)
SUMMARY
Following up on #26215 by playing whack-a-mole on the numerical x-axis truncation problem. Move from using
dataMin
/dataMax
toscale: true
when truncating x-axis for bar charts. This applies automatic truncation by ECharts, which is able to handle truncation more gracefully. For other than bar charts, we'll retain thedataMin
/dataMax
logic without thescale
parameter.AFTER
Now there is a proper margin on the x-axis to not overlap y-axis.
Now also mixed series chart has the same functionality:
BEFORE
Previously the smallest and largest bars would
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION