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

Replace qualitative color palette in visualizations #13327

Closed
snide opened this issue Aug 3, 2017 · 9 comments
Closed

Replace qualitative color palette in visualizations #13327

snide opened this issue Aug 3, 2017 · 9 comments
Labels
Feature:Visualizations Generic visualization features (in case no more specific feature label is available) PR sent release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@snide
Copy link
Contributor

snide commented Aug 3, 2017

This is an imperfect, but much better colorblind-safe palette that @Adrian-J and I like for chart usage.

image

#00B3A4
#3185FC
#DB1374
#490092
#FEB6DB
#F98510
#E6C220
#BFA180
#920000
#461A0A

Beyond these 10 colors, when more are needed we should either do one of two things:

  1. Cycle the colors again in order.
  2. Modify the palette above by a luminosity percentage (likely alternating a positive value first, then a negative one) for each new series of 10. This will only scale so far, eventually the series will become too dark or too light to be readable, so you'll still need to eventually cycle.

The larger the palette becomes, the more impossible it becomes to scale against colorblindness. I'll leave it to you which system you think is best.

@markov00
Copy link
Member

@snide I'm using this vis color palette on a stacked bar chart but, at least for a normal color viewer (for color blind seems work correctly), the contrast seems a bit too much high between green blue and red, especially between blue/red one, and it's quite eye disturbing.
What do you think about?

screen shot 2018-05-30 at 11 56 03

@snide
Copy link
Contributor Author

snide commented May 30, 2018

We have pretty strict guidelines on accessibility and contrast. It's difficult coming up with a set of ten colors that work against those requirements and that somewhat match our brand and that work on a dark background. Generally they tend to come out hot.

@markov00
Copy link
Member

I perfectly understand the difficulties there 👍
What do you think about having a different palette order for some visualizations? so high contrasting colors are mixed with lesser contrasting colors? like: green - yellow - blue - pink - red etc?

@snide
Copy link
Contributor Author

snide commented May 30, 2018

Feel free to adjust the order as you think works best. The blue should likely be first though.

@timroes timroes added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Sep 16, 2018
@thomasneirynck thomasneirynck removed their assignment Jul 17, 2019
@monfera
Copy link
Contributor

monfera commented Aug 13, 2019

Great work, it's quite hard to make a 10-element qualitative color palette that's suitable for various vision strengths and weaknesses and this palette is doing well. As it's common to use just two, or just a few of these colors, putting more contrasting ones at the beginning would be good, for example with the current order, the first two are hard to tell apart:

Monochrome:
image

Deauteranopia, which is the most common (others are similarly close in the first two positions):
image

Even in full color they're a close pair esp. with thin lines or small points:
image

@myasonik
Copy link
Contributor

This issue has a closed PR associated with it. Is there anything left to do for this? (Not for addressing color blindness issues with visualizations more broadly, but specifically for replacing the old palette with the newer palette.)

@markov00
Copy link
Member

cc @stratoula @flash1293

@flash1293
Copy link
Contributor

We are working on this right now - it's planned for 7.12 @stratoula do we need to keep this issue? I guess there's another one tracking this.

@stratoula
Copy link
Contributor

As Joe said, we are working on it. We plan to migrate to the new palette for the xy axis and pie charts for 7.12 and eventually to the other charts. No need to keep 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) PR sent release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants