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

It should be possible to sort terms/keywords in custom order #9545

Closed
odin- opened this issue Dec 18, 2016 · 3 comments
Closed

It should be possible to sort terms/keywords in custom order #9545

odin- opened this issue Dec 18, 2016 · 3 comments
Labels
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

@odin-
Copy link

odin- commented Dec 18, 2016

Describe the feature:

When creating for example stacked bar diagrams from data imported (using Elastic Search) it should be possible to select the exact order of the data displayed in the diagram bars.

Let's say we have 10 of A, 15 of B and 3 of C. The order of the stacked data in the diagram should be configurable so that B is on the bottom, C is in the middle and A is on the top (for example).

In my case I run a number of regressions and output PASS, FAIL, TIMEOUT, ERROR in the stacked diagrams. I always want to have PASS in the bottom independent of PASS count.

@epixa epixa added Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:enhancement labels Dec 19, 2016
@thomasneirynck
Copy link
Contributor

hi @odin-

You could create a scripted field in Kibana that maps PASS/FAIL/TIMEOUT/ERROR to 0/1/2/3 numbers. Then, in the Visualize data panel, you can sort your results based on this ordering.

Select your scripted field in this input box:
image

For more info on scripted fields, see: https://www.elastic.co/blog/using-painless-kibana-scripted-fields.

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

ned-si commented Sep 24, 2020

Hi,

I just stumbled upon this issue and was wondering if there was any news on this? Not that the scripted fields don't work, but I would love to be able to do it directly in a visualization without having to add any global overhead.

@stratoula
Copy link
Contributor

I think with breakdown by filters you can have the order you want. I am closing this

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) release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

6 participants