-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Comments
+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. |
agreed -- topN is most useful for comparing frequencies, and while the gradient is very tasteful, clashing colors would be more informative. |
the following would seem a quite sane approach: http://martin.ankerl.com/2009/12/09/how-to-create-random-colors-programmatically/ |
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) |
+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. |
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. |
+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. |
+1 the gradient isn't always visible. |
I agree, the current coloring scheme works for limited applications. |
The top N query has been deprecated as nested aggregations are much faster. We've introduced better color logic for them in Kibana 4 |
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.The text was updated successfully, but these errors were encountered: