-
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
make legend order match stacked bar order #3118
Comments
I actually wonder if instead of making the legend the same order as the bars, if we shouldn't just sort alphabetically how we display both the legend and the bars. Also, when a bar is hovered, we should be highlighting the legend value that corresponds to it. |
I find it very annoying when the "top" elements on a date histogram bucketing does not show ordered on the legend. I believe the legend shows the results as they appear on the first bucket and not as a "whole" of all buckets. |
Most likely another issue, but a big +1 from me - I always try to use the charts this way |
• The stacked charts are rendered bottom up with the largest-value series at the bottom and smallest-value series at the top. For example, if you "Split Bars" on top 5 @tags, the legend shows the answer at the top: If you split on bottom 5 @tags, the legend shows the answer at the top: |
Agreed, hovering over a bar segment should highlight the legend. This was the behavior at some point, and should be restored. |
+1 bar charts and legends should have the option to be in the same order, particularly for large numbers of entries in the legend |
@rashidkpc Actually alphabetical sort for the legend is not always the best way to show something. Ideally it should be possible to choose the order. For the time being it seems there's no other option if I want to have legend sorted as I please but to add numbers to the strings ie 1_something_A 2_something_C 3_something_B and sort this way to have them ordered 1,2,3. And this also doesn't always work as expected :-] Pretty lame but how to do it otherwise? |
A forgotten request or any chance to make it happen in 5.x ? xD (that is to have also ability to order legend by user) |
👍 for alphabetical ordering. Manual ordering would also be nice |
Similar to @samuelmr, I don't have a problem with largest to smallest from bottom up for bars and topdown for legends. My issue with Kibana 4.5.0 and ES 2.3.0 is that with any Date Histogram + Split bars charts, both bars and legends are just a mess as you can see below Sometimes largest values are at the bottom (pink), while for some bars, smaller values (blue) are at the bottom. The pink value on legends are at 12th order which makes no sense when related to the bars. Ordering works fine if we do not use the split bars in visualization. I'm not sure if it could slow down Kibana, but I recommend that there are options to sort legends either by the total values during the timeframe or by the latest value - the last bar. And I hope the bars display nicely as @jthomassie post. Right now in my dept., anyone who looks at these visualizations gets confused with such mismatches. |
Any update on this? I'm still having this issue on Kibana 4.5.1. |
This is super confusing, I know in visualizations I create (not Kibana) I always make the stacking order match the legend. This is very confusing for new users learning how to use Kibana. |
Had a user come across this in the discussion boards today: https://discuss.elastic.co/t/sorting-issue-on-keyword/231133 |
Is there any update on this?? |
Closing as duplicate of #86184 |
From what I've seen, when K4 renders a stacked bar in some top-bottom color order (e.g., red, yellow, green), the legend is listed in the opposite top-bottom order (e.g. green, yellow, red). Right now, it's easy to see the two orderings are different, but it's not so easy to see that they are opposite. As a result, moving from bar to legend turns into a matching game, which can be even more annoying if the colors are close together or you have some condition that makes distinguishing colors difficult.
I'd like to see the legend listed in the same top-bottom order as the bars.
The text was updated successfully, but these errors were encountered: