-
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
[TSVB] Hides ticks on the y axis for layers with the same format and different template #123598
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! Works as expected, tested locally
@elasticmachine merge upstream |
…different template
Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors) |
@elasticmachine merge upstream |
@alexwizp this seems to work as before now. @flash1293 do you want to also take a look? But I checked it on v7.11 and I saw that if you have one layer with percent for example and the second with bytes, no formatter is applied on the yaxis. I prefer the Lens way but I think that we should be bwc and not change the behavior. Wdyt? |
@flash1293 yes I know about this too. If you set on the first layer to use a separate left axis, then the formatter is applied.... Screenshot from 7.11 (right axis works fine, left axis doesn't have the format) With that being said, I think we could create an issue for that and tackle it to a different PR |
Got it, looks good to me in that case. |
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.
Code LGTM, this works as expected. I created another issue for the behavior that Joe mentions here
#123891
…different template (elastic#123598) * [TSVB] Hides ticks on the y axis for layers with the same format and different template * fix PR comment * fix JEST Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 61ef26d)
…different template (elastic#123598) * [TSVB] Hides ticks on the y axis for layers with the same format and different template * fix PR comment * fix JEST Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 61ef26d)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…different template (elastic#123598) * [TSVB] Hides ticks on the y axis for layers with the same format and different template * fix PR comment * fix JEST Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 61ef26d)
…different template (elastic#123598) * [TSVB] Hides ticks on the y axis for layers with the same format and different template * fix PR comment * fix JEST Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 61ef26d)
…different template (#123598) (#125515) * [TSVB] Hides ticks on the y axis for layers with the same format and different template * fix PR comment * fix JEST Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 61ef26d) Co-authored-by: Alexey Antonov <alexwizp@gmail.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
…different template (#123598) (#125516) * [TSVB] Hides ticks on the y axis for layers with the same format and different template * fix PR comment * fix JEST Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 61ef26d) Co-authored-by: Alexey Antonov <alexwizp@gmail.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Closes: #123439
Describe the bug:
The bug exists if you have a TSVB timeseries chart with more than 1 layers.
Expected behavior:
If the formatters are the same (here for example both layers are using percent) and the value template changes we should depict it on the yaxis. We can follow Lens example and display the data with the first templateIf the formatters are different (for example one percent, one default), the y axis should depict the first formatting (as Lens does)In TSVB, this was originally implemented differently from LENS. In case the formatters are different, we use the default number formatter