-
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
[Lens] break down by - allow users to select their color palette #53661
Comments
Pinging @elastic/kibana-app (Team:KibanaApp) |
There are two things that we should do for break down by in the short term, and one that we should delay on. In the short term, "break down by" is always showing categorical data. Categorical data should be displayed using distinct colors for each category, and should not be displayed using a continuous scale. For example, the default colors we use in Visualize are categorical: So the two things we should do in the short term are:
The thing to delay is continuous color palettes for Break Down by. There will be a future where users can break down by a continuous value, but we are not there yet. |
Was not aware that charts had already done some work on this: elastic/elastic-charts#51 |
Summarizing some offline discussions I've had about categorical palettes in Lens:
|
Based on the latest discussions we will be placing this in the chart-level Lens settings for the first iteration, as opposed to being in a specific dimension. This is because both XY and pie charts need to have categorical colors, and placing it in a specific dimension does not work for pie charts. |
I would like to propose to postpone this after the "Lens by default" timeframe and go with #68404 instead. The difference is instead of having a color palette setting for the "break down by" dimension, there is a chart level setting for the same thing. For most cases this will behave in the same way, but it solves the case if the user doesn't have a "break down by" dimension yet and wants to change the used palette (e.g. when using multiple metrics). The only cost of that I can think of is that multiple layers will use the same palette, but I don't think this would be a big impact. Besides that, it simplifies implementation by quite a bit because we don't have to take care of a bunch of edge cases when working with multiple layers (less bugs and easier to maintain). |
Closed by #75309 |
Currently when breaking down by a field Lens uses the default color palette.
We would like to allow users to customize it by choosing from existing color palette
cc: @cchaos
The text was updated successfully, but these errors were encountered: