-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Charts] Multi-layer time axis (opt-out only) #115853
[Charts] Multi-layer time axis (opt-out only) #115853
Conversation
This reverts commit 0b570f6.
@elasticmachine merge upstream |
src/plugins/vis_types/timeseries/public/application/visualizations/views/timeseries/index.js
Outdated
Show resolved
Hide resolved
Pinging @elastic/datavis (Feature:ElasticCharts) |
I've marked the PR ready to review because it looks like the CI is timing out on the |
💛 Build succeeded, but was flaky
Test FailuresMetrics [docs]Public APIs missing comments
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
Sure we can add the
The issue with timelion is that it doesn't have a great set of defaults, in combination with the multi-layer time axis can create confusion and misleading charts. One example is the size of the bars: timelion doesn't show bar histograms, but it uses small thin bars of 6px by default. The bars are rendered always between the starting point and the end point, but when the size is reduced so much, the bar looks centered in the middle of the bin and the user can misunderstand that the x value is in the middle, not at the beginning. |
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.
Dashboard snapshot testing tolerance change LGTM! Code review only.
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.
I've logged few questions and bugs in the elastic-chart linked issue.
One bug is relative to Visualize normal bar chart not enabling the new time axis.
The other bug is relative to some offset in Vertical bar chart in Lens (probably with partial data?)
We just changed the tooltip for pie chart to "in a future version" because it wasn't decided yet. I think we can do the same here. |
💔 Backport failedThe backport operation could not be completed due to the following error: The backport PRs will be merged automatically after passing CI. To backport manually run: |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Summary
This PR introduce the multi-layer time axis in Discover, Lens, Visualize, TSVB.
It adds
visualization:useLegacyTimeAxis
advanced settings undercharts
plugin to toggle legacy time axis.The new multi-layer time axis is introduced in
@elastic/charts
https://elastic.github.io/elastic-charts/?path=/story/area-chart--timeslip and was demoed as part of the Kibana Demo Days.It is the outcome of the research done in elastic/elastic-charts#1310 related to improve the time axis solving the following problems:
There can be some subsequent fix PR related to that, that DRY up the code a bit and introduce small changes in the colors.
TO REVIEWERS: this change can have some issues that we are promptly collecting here elastic/elastic-charts#1442 and fixing in the next weeks. If the case we can't fix all the issues before nov 15 we are going to switch on the
visualization:useLegacyTimeAxis
switch.