carbon-design-system / carbon-charts

:bar_chart: :chart_with_upwards_trend:⠀Robust dataviz framework implemented using D3 & typescript
https://charts.carbondesignsystem.com
Apache License 2.0
904 stars 184 forks source link

Color palette colors indistinguishable by colorblind user #1244

Open khbibm opened 2 years ago

khbibm commented 2 years ago

Hi Carbon Charts. Apologies if this is not the right place for this feedback. I used the light categorical palette (https://www.carbondesignsystem.com/data-visualization/color-palettes/#categorical-palettes) in a visualisation, assigning the colours to the categories in sequence. When only two categories were present, it resulted in the "Purple 70" (6929c4) and "Cyan 50" (1192e8) colours being used as per the sequence. Just letting you know that I had some feedback from a colour-blind user that those two colours were indistinguishable. Cheers.

theiliad commented 2 years ago

Hi, this is a tough one as I know the team has tried to come up with a sequentially 3-to-1 palette, and when shown in charts, we can't guarantee that the sequence will be kept because of the nature of the various graphs.

I would like to look at a high-contrast option, which I think could solve these issues (e.g pattern fills for the graphs).