Skip to content
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

Lens is not ordering legends and tooltips properly when stacked series is present #127237

Closed
martinmontane opened this issue Mar 9, 2022 · 5 comments
Labels
blocked bug Fixes for quality problems that affect the customer experience Feature:Lens impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@martinmontane
Copy link

Kibana version: 7.17.0
Elasticsearch version: 7.17.0
Server OS version: Ubuntu 18.04
Browser version: Chrome 99.0.4844.51
Browser OS version: Mac OS Monterrey 12.2.1
Original install method (e.g. download page, yum, from source, etc.): Pulled from Dockerhub's Elastic official container images

Describe the bug: When creating a TSVB vizualization and mixing one or more "stacked" with one or more "none" stack time series, "stacked" series labels are always shown first in the legend a tooltips, even when specifically ordered

Steps to reproduce:

  1. Create a TSVB vizualization with two series: one with "stacked" and one with "none" in the stack property
  2. Put the "none" one first in the order of time series
  3. Check the tooltip and legend label position. labels of the "stacked" series are always shown first

Expected behavior: I would expect that the ordering of the time series work independently of the stacked property value

@martinmontane martinmontane added the bug Fixes for quality problems that affect the customer experience label Mar 9, 2022
@botelastic botelastic bot added the needs-team Issues missing a team label label Mar 9, 2022
@kertal kertal added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Mar 9, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Mar 9, 2022
@flash1293
Copy link
Contributor

flash1293 commented Mar 9, 2022

I can reproduce this. @elastic/datavis This seems to be an elastic-charts limitation, could you have a look? I made sure the individual series are always passed in in the same order.

Also reproducible in Lens

@markov00
Copy link
Member

markov00 commented Mar 9, 2022

@flash1293 this is actually a limitation on our end, we first show stacked bars and then non-stacked ones.
It was always like that in elastic-charts, but as for the legend, we can expose that sorting logic, or align in the way the configuration was given.
We have a meta issue collecting these requests: elastic/elastic-charts#860

@flash1293 flash1293 added blocked impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. and removed triage_needed labels Mar 9, 2022
@martinmontane
Copy link
Author

Hey, thank you for checking my bug report so quickly. I think it's worth noting that in ELK 7.9.2 we did not have this bug.

@stratoula stratoula changed the title Time Series Visual Builder is not ordering legends and tooltips properly when stacked series is present Lens is not ordering legends and tooltips properly when stacked series is present Jan 29, 2024
@ghudgins
Copy link
Contributor

I believe we will address this with more control over sorting in legends - #191988

@ghudgins ghudgins closed this as not planned Won't fix, can't repro, duplicate, stale Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked bug Fixes for quality problems that affect the customer experience Feature:Lens impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

7 participants