-
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
Fixes problem with one chart plotted for multiple y axis when migrating from an old SO #112972
Conversation
…ong from an old SO
@elasticmachine merge upstream |
Pinging @elastic/kibana-vis-editors (Team:VisEditors) |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
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.
Tested in Chrome and Safari 👍
…ng from an old SO (elastic#112972) * Fixes problem with one chart plotted for multiple y axis when migrationg from an old SO * Add unit tests * Address PR comments Co-authored-by: Kibana Machine <[email protected]>
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
…ng from an old SO (#112972) (#114098) * Fixes problem with one chart plotted for multiple y axis when migrationg from an old SO * Add unit tests * Address PR comments Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Stratoula Kalafateli <[email protected]>
Summary
Fixes #112345.
Which is the problem
The problem is that there are some very old SOs that don't have the following params properties:
An example is:
Here is a ndjson for testing:
testing.ndjson.zip
Solution
The reason that the charts are not rendered (only one is rendered) is because we don't have the seriesParams array in our params. For this reason, the default is applied and only the first chart is rendered. I fixed that by extracting the seriesParams by the aggs property.
But this doesn't solve all the problems. For example if the user has defined different yaxis which means multiple valueAxes, when upgrade, they will render in one axis (the left one). The reason that I can't fix it is that I don't know how the configuration was back then.
Vislib
The vislib implementation plots all charts but still doesn't solve the problem with the multiple y-axis.
Checklist