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

Sub-aggregations should be sorted globally #14536

Closed
bgoldowsky opened this issue Oct 24, 2017 · 25 comments
Closed

Sub-aggregations should be sorted globally #14536

bgoldowsky opened this issue Oct 24, 2017 · 25 comments
Labels
Feature:Vislib Vislib chart implementation Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@bgoldowsky
Copy link

Describe the feature:

Currently, a visualization with sub-buckets such as a heat map, if both the X and Y axes have a natural order, there is no way to get both axes to sort in the expected way. The sub-aggregations are sorted within the scope of each main bucket. I believe they should instead be sorted globally according to the chosen sort criteria (or, if there is a use case where the current behavior is preferable, this should be a user option).

Example:
(from https://discuss.elastic.co/t/ordering-for-both-axes-of-heatmap/104589 )

Here is a heatmap. The "class" and "investigation number" are both numeric values which ought to be presented in order:

image

As you can see the Y "class" axis is not in the ascending order by term as I wanted.
I can give the Y axis priority so that it does appear in the correct order like this:

image

But now the investigation number is not in increasing order. There is currently no way to get both axes in the expected order.

@timroes timroes added Feature:Vislib Vislib chart implementation Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:enhancement labels Oct 24, 2017
@guanghaofan
Copy link
Contributor

yes, is there any plan to fix this issue asap?

@s9gf4ult
Copy link

Vote for this issue as well.

@symstopje
Copy link

+1

@timroes timroes added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Sep 16, 2018
@matthew-hickok
Copy link

+1....Please!

@Kaiserchen
Copy link

+1

1 similar comment
@bodinsamuel
Copy link

+1

@zxytim
Copy link

zxytim commented Dec 10, 2018

+1
I encountered the same issue today, and thought it was just a "google, and you are all set" thing. But later I was quite surprised that this issue was raised 1 year ago, and has been lying here since then.
Hope to see some actions regarding this issue.

@MarcelViennyTech
Copy link

+1

1 similar comment
@chenmach
Copy link

+1

@lubobill1990
Copy link

lubobill1990 commented Mar 14, 2019

+1 I think the heatmap chart can be used a lot when we hope to find relationship between two variables.

If there's one variable that's randomly listed, the relationship can hardly be find, which makes heatmap meaningless.


Maybe, vega is for this requirement?

@ghost
Copy link

ghost commented May 16, 2019

+1 on this. Attempting to create a heatmap for common monitor sizes, it's very difficult to view this data property without being able order both axes correctly.

@zivklara
Copy link

+1
having the same issue in Vertical Bar. is it going to be fixed soon?
I would like to sort by field1, and color by field2. for more info and examples, please view this thread

@rwhit
Copy link

rwhit commented Oct 9, 2019

+1
Why is this an enhancement and not just a straight up bug? Heatmaps where both axes have a natural order are common - and not very useful if one of the axis is sorted randomly.

@jbjose
Copy link

jbjose commented Nov 19, 2019

+1

@MichaelWCC
Copy link

MichaelWCC commented Dec 20, 2019

+1

In all my use cases I could just simply set the order manually, that would be a great improvement. I get what happens behind the scenes but it's tedious every time someone else encounters the problem and I have to explain why the plot is screwed up. Just like lubobill1990 says, it's hard to see some patterns when the second agg is all over the place.

@ambim
Copy link

ambim commented Jan 6, 2020

+1

Trying to create a pretty rudimentary HourOfDay by DayOfWeek heatmap and can't

I also agree with @rwhit . It is a bug, as the UI suggests to the User that it is possible to sort by both X & Y axes, when in fact it's not.

image

@ambim
Copy link

ambim commented Jan 6, 2020

This has now been an Open issue for 25 months, any update @timroes ?

@dk-data
Copy link

dk-data commented Aug 12, 2020

+1
Does anyone have a viable workaround for this in the absence of a fix?

@toopricey
Copy link

If you use the Extend Bounds functionality, it will cause (numerical) values to be correctly ordered. I'm unsure if this works for non-numeric ordering.

@karnamonkster
Copy link

+1

1 similar comment
@ch-bas
Copy link
Contributor

ch-bas commented Apr 30, 2021

+1

@lachlann562
Copy link

This is not just on heatmaps, the same problem happens with line graphs as well.

@flash1293
Copy link
Contributor

Duplicate of #86184

@flash1293 flash1293 marked this as a duplicate of #86184 Oct 13, 2021
@PaoloUr
Copy link

PaoloUr commented Feb 6, 2022

+1

@FrancescoUrbano
Copy link

+20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Vislib Vislib chart implementation Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests