medic / config-covid

3 stars 6 forks source link

Explore options for color_scheme #93

Closed michaelkohn closed 4 years ago

michaelkohn commented 4 years ago

Ideally we'd create a CHT color_scheme, but it sounds like usage of colors in the color_scheme is inconsistent. In light of that, we should try to figure out how to explicitly set colors for series data (lines, bars, etc....)

For now, we can simply choose some colors from existing CHT resources and hard code those for each of the series in each of the charts.

HEX and RGB can be found here https://docs.communityhealthtoolkit.org/design/core/#primary-colors and perhaps we can just use Blue, Pink, and Yellow for each chart. So if the chart only has 1 series, make it blue. If the chart has 2 series, make them Blue and Pink, and if there are three, use Blue, Pink, and Yellow. (I'm fine with other colors if you prefer another scheme).

michaelkohn commented 4 years ago

FWIW... I noticed you can set the color scheme at the dashboard level (vs. individual charts). I imagine it just gives each series the next up color in the scheme, not sure if it just cycles back around if there are more series than colors in your scheme... maybe it just gives you random.

The LYFT color scheme looks better than AirBnB :-)

Screen Shot 2020-06-26 at 5 13 03 PM

Pall-v commented 4 years ago
michaelkohn commented 4 years ago

Thanks @Pall-v . Let's go ahead and set it at the dashboard level and use the color scheme / colors mentioned at the top, ie

HEX and RGB can be found here https://docs.communityhealthtoolkit.org/design/core/#primary-colors and perhaps we can just use Blue, Pink, and Yellow for each chart. So if the chart only has 1 series, make it blue. If the chart has 2 series, make them Blue and Pink, and if there are three, use Blue, Pink, and Yellow. (I'm fine with other colors if you prefer another scheme).

Pall-v commented 4 years ago

Updated using four primary colors from the CHT color_scheme.

michaelkohn commented 4 years ago

Looks like the Coverage chart is still using different colors. Maybe you can show us how to change this during the call today.

Screen Shot 2020-07-17 at 12 57 08 PM