Eleminate RED color in Google Stacked bar charts

20 views
Skip to first unread message

ccLIA

unread,
Oct 1, 2018, 4:32:37 AM10/1/18
to Google Visualization API
I am using Google Stacked bar charts in my project, and I would love to know how to eliminate the RED color in my bar chart as user is color blind.

Ray Thomas

unread,
Oct 1, 2018, 9:52:53 PM10/1/18
to Google Visualization API
One way is to use the method described at https://developers.google.com/chart/interactive/docs/customizing_charts and to create your own palette in the graph's options. Google's default palette is at https://github.com/ankane/chartkick/issues/351, you can simply paste the values into the option and remove the ones that are giving your users problems. 

You can completely change the palette using this method to one of the colorblind friendly palettes. There's some available in the dropdowns at http://tools.medialab.sciences-po.fr/iwanthue/

Depending on your data, you can use a smaller palette. Like Google's default palette what happens is if there is more data than colors, then the colors are reused starting from the beginning.

This is more less what I did to create the palettes at https://www.indstate.edu/business/metrics

Ray
Reply all
Reply to author
Forward
0 new messages