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

Incorrect bar ordering for sub-bucket term aggregation and custom metric as "Order by" #22207

Closed
mkurtak opened this issue Aug 21, 2018 · 1 comment
Labels
Feature:Visualizations Generic visualization features (in case no more specific feature label is available) Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@mkurtak
Copy link

mkurtak commented Aug 21, 2018

Kibana version: 6.3.2

Elasticsearch version: 6.3.2

Server OS version: Centos 7

Browser version: Chrome

Original install method (e.g. download page, yum, from source, etc.): yum

Describe the bug:
Incorrect bar ordering in vertical chart when using "Terms" aggregation ordered by "Custom metric" based on timefield and combined with Split series sub-aggregation using another Term.

Steps to reproduce:

  1. Create vertical bar chart visualization
  2. Put Count on Y-Axis
  3. Put Terms aggregation on X-Axis
  4. Set Order By to Custom Metric with Max Aggregation on Field of type date (each record in term bucket has same value of this field, but each bucket has different value)
  5. Vertical bar chart has correct orders - first screenshot
  6. Add Split Series as another Term Sub Aggregation (not every bucket on X-Axis contains all subbucket terms)
  7. Vertical bar chart has incorrect orders. It seems that only buckets not containing all sub-bucket terms are incorrectly sorted

Additional info:
I've found issue #3314, but it seems fixed two years ago, so I'm not sure if its a same bug.

Screenshots

Correct bucket order:
screenshot 1

Incorrect bucket order:
screenshot 2

@lukasolson lukasolson added Feature:Visualizations Generic visualization features (in case no more specific feature label is available) triage_needed labels Aug 21, 2018
@timroes
Copy link
Contributor

timroes commented Sep 10, 2018

Duplicate of #17532

@timroes timroes marked this as a duplicate of #17532 Sep 10, 2018
@timroes timroes closed this as completed Sep 10, 2018
@timroes timroes added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Sep 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Visualizations Generic visualization features (in case no more specific feature label is available) Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

4 participants