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

Enhancement: color list for topN queries #1121

Closed
faxm0dem opened this issue Apr 7, 2014 · 10 comments
Closed

Enhancement: color list for topN queries #1121

faxm0dem opened this issue Apr 7, 2014 · 10 comments

Comments

@faxm0dem
Copy link

faxm0dem commented Apr 7, 2014

When using a topN query, it is currently only possible to choose one color, which then generates a nice gradient. Sometimes it is more relevant to use a color list, e.g. ['red','green'] corresponding for instance to ['Reject','Accept']. This would allow for increased contrast.

@jmcle
Copy link

jmcle commented Apr 16, 2014

+1. I currently use topN to draw a histogram of requests per user over time. With a graph like this it make more sense to have a contrasting color palette instead of a gradient. Having a drop down with options like 'gradient, contrasting, or custom' would be excellent.

@ntfrnzn
Copy link

ntfrnzn commented Apr 24, 2014

agreed -- topN is most useful for comparing frequencies, and while the gradient is very tasteful, clashing colors would be more informative.

@faxm0dem
Copy link
Author

the following would seem a quite sane approach: http://martin.ankerl.com/2009/12/09/how-to-create-random-colors-programmatically/

@ralphm
Copy link

ralphm commented Jul 17, 2014

I'd also love to see a feature where you'd not get the gradient but clashing colors. I really like the approach taken by Grafana, where you can click on the label in a graph's legend and set the color for the matching metric there. This also works for metrics series (as opposed to just one), so that would be kinda similar to topN. Grafana then just keeps a mapping of label names and colors. I suppose that for Kibana it would be nice if this list is tied to the query, so that the selected colors are consistent between multiple graphs (like a histogram and a hits panel)

@JulienPalard
Copy link

+1 here too, I'm using a topN to feed an histogram with bars. My topN is on a "hostname" field, I'd like to use the dominant color of the favicon of the website instead of a gradient, so my brains can match it faster. Also, the gradient use some quasi indistinguisable colors, it's almost impossible to read while approching brightest colors.

@JulienPalard
Copy link

An idea permitting uniformiasation may be to globally assign color to given values.

Using this technique we'll be able to use the right color independently of the source (topN + stats or lucene + terms), this fixes others bug about color coherence between terms panels.

@tylerjl
Copy link

tylerjl commented Sep 19, 2014

+1

While topN is a nice replacement for derivequeries, the lack of contrast in comparison with the queries derivequeries generated is a pretty big break in the use case we've been leveraging it for.

@quentinchap
Copy link

+1 the gradient isn't always visible.

@danmilon
Copy link

I agree, the current coloring scheme works for limited applications.

@rashidkpc
Copy link
Contributor

The top N query has been deprecated as nested aggregations are much faster. We've introduced better color logic for them in Kibana 4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants