Andrian is absolutely correct but here's a fuller explanation.

The colors can be defined for any graph either in the Options section or in 
the main draw() method. The help for both is at 
https://developers.google.com/chart/interactive/docs/customizing_charts

The default color array for Google charts contains 32 colors. The first 21 
of them are given at https://github.com/ankane/chartkick/issues/351

If there are more data points than colors then when the entire array is 
used then it starts from the beginning again. This also applies if you 
define your own array.

You can also define your own array anywhere inside the script and use that. 
For example

var clrArray=['#e0440e', '#e6693e', '#ec8f6e', '#f3b49f', '#f6c7b6']; 
colors: clrArray 

This is useful if for example you need to use more colorblind friendly 
colors.

There's several palette generators around, three are the ones at 
http://tools.medialab.sciences-po.fr/iwanthue/ and http://colorbrewer2.org/
 and https://color.adobe.com/create/color-wheel/ 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/7bd794e1-95e8-4170-a5ce-604e0ac3e1a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to