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

[BUG] Heatmap Y-axis does not sort correctly #882

Open
ghost opened this issue Oct 19, 2021 · 2 comments
Open

[BUG] Heatmap Y-axis does not sort correctly #882

ghost opened this issue Oct 19, 2021 · 2 comments
Labels
bug Something isn't working help wanted Community development is encouraged

Comments

@ghost
Copy link

ghost commented Oct 19, 2021

Describe the bug

The Y-axis of a heatmap visualization does not sort correctly when using (at least) a Histogram or Date Histogram aggregation for that axis.

To Reproduce
Steps to reproduce the behavior:

  1. Create a heatmap visualization
  2. Use a date histogram for the X-axis
  3. Use either a date histogram or (regular) histogram for the y-axis

Expected behavior
Y-axis buckets should be sorted

OpenSearch Version
"OpenSearch 1.0" (via AWS OpenSearch)

Dashboards Version
OpenSearch 1.0

Plugins

N/A

Screenshots

image

Host/Environment (please complete the following information):

  • OS: macOS 10.15.7
  • Chrome 94.0.4606.61 (Official Build) (x86_64)

Additional context

HeatMap is the closest thing OpenSearch / Kibana offers to a scatterplot, and has historically worked ok for this use case. However this bug severely limits eliminates heatmap's usefulness for visualizing two dimensional data.

@ghost ghost added bug Something isn't working untriaged labels Oct 19, 2021
@ghost ghost changed the title [BUG] [BUG] Heatmap Y-axis does not sort correctly Oct 19, 2021
@tmarkley tmarkley added help wanted Community development is encouraged and removed untriaged labels Oct 26, 2021
@adrien-cahoreau
Copy link

The sort bug on sub-aggregations affects not only the heatmap, but also other visualisations.
Since years, there are several reports of this bug on Kibana :

And Elastic plans to fix it mainly in its own Lens : elastic/kibana#86184

However, this bug has been fixed recently on the Kibana's heatmap (8.1) with a new implementation from elastic-charts : elastic/kibana#118338

@WhereDidTheBirdsGo
Copy link

As a workaround, try setting the 'extend bounds' values for the Y to encompassing values. Not perfect, for me it sorted it upside-down, but at least it's readable now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Community development is encouraged
Projects
None yet
Development

No branches or pull requests

3 participants