-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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 "Top Values" legend appears in ascending order #111873
Comments
Also just noticed that if changed to a line chart, the display is descending as expected. |
Pinging @elastic/kibana-vis-editors (Team:VisEditors) |
this is one of those things that's a "feature" not a bug and relates to the vis itself. If you stack your visualization the largest value, by the vis' design, is actually on the bottom. I do fully agree that it can feel like a bug because it's not what you expect...but the legend does match the structure of the visualization (on stacked visualizations the "first" value is on the bottom). One way it's particularly frustrating is when building a dashboard with both stacked & non-stacked visualizations as the legends aren't consistent. (CC @elastic/datavis ) but right now, beyond some of the longer features outlined on the legends meta in the charts repo (elastic/elastic-charts#580), i'm not sure we can just change this as it's a compromise to the single stacked visualization's readability / design. What do others think? I see why it is what it is and have personally felt the "this is a bug" feeling on my dashboards because of this behavior...but don't think we should change it because we'd be compromising the optimal vis design for stacked. |
We track the general feature of granting more control over sorting in general here: #86184 I almost want to close this in favor of the general issue, but if there's a quick fix to get this specific problem (stacked vs. non-stacked legends) under control in the short term, that would be cool as well. @markov00 do you have an idea how to make behavior more consistent for now without changing the whole approach or pushing this decision to the user? |
Closing in favor of #86184 |
@flash1293 I was talking about this with @mfinkle and are we sure that client side sorting is the same as legend-sorting and they shouldn't be separate issues? This might just be me but: i'm using top values i'm using filters |
Kibana version:
7.14.0
Elasticsearch version:
7.14.0
Server OS version:
Elastic Cloud
Browser version:
Chrome
Browser OS version:
MacOS
Describe the bug:
Items in Legend appear in top values ascending order even though setting indicates descending
Screenshots (if relevant):
The text was updated successfully, but these errors were encountered: