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

x-axis order not preserved in split series vislib charts #31534

Closed
lukeelmers opened this issue Feb 19, 2019 · 1 comment · Fixed by #31533
Closed

x-axis order not preserved in split series vislib charts #31534

lukeelmers opened this issue Feb 19, 2019 · 1 comment · Fixed by #31533
Assignees
Labels
Feature:Vislib Vislib chart implementation Feature:XYAxis XY-Axis charts (bar, area, line) Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@lukeelmers
Copy link
Member

Currently the x-axis sort order is not always respected when working with vislib charts that have a split series.

To Reproduce:

  1. Create a stacked bar chart using kibana_sample_data_logs
  2. Set time range to today
  3. Metrics:
    • Y-Axis: Count
  4. Buckets:
    • X-Axis: terms on extension.keyword, order: alphabetical ascending, size: 5
    • Split Series: terms on machine.os.keyword, order: count descending, size: 3
  5. The values along the x-axis are not in alphabetical order.

This is due to the way the point series agg response handler generates series data, only filling in series values as it encounters them bucket-by-bucket. By the time the series data makes it to vislib, the original sort order from ES & the tabified data is lost.

This was discovered as a part of the investigation into #17532.

@lukeelmers lukeelmers added Feature:Vislib Vislib chart implementation Feature:Aggregations Aggregation infrastructure (AggConfig, esaggs, ...) Feature:XYAxis XY-Axis charts (bar, area, line) Team:Visualizations Visualization editors, elastic-charts and infrastructure app-stabilizing labels Feb 19, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app

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:XYAxis XY-Axis charts (bar, area, line) Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants