Set the "colors" option (like you did below); each element in the array 
corresponds to a data series (so with the array below, the first series 
would be black, the second blue, etc).

On Tuesday, August 7, 2012 3:13:40 PM UTC-4, Lumière wrote:
>
> I like your code! But how do you choose the colors?
>
> Le mardi 7 août 2012 18:27:53 UTC, asgallant a écrit :
>>
>> You can only color data by series.  If you want different colors for 
>> bars, you have to assign those values to different series, which can be 
>> handled with a DataView using calculated columns.  You then need to set the 
>> "isStacked" option to true and draw the chart based on the DataView.  I 
>> wrote a demo script for this that you can base your's off of: 
>> http://jsfiddle.net/asgallant/QHJA6/ 
>>
>> On Tuesday, August 7, 2012 12:30:11 PM UTC-4, Lumière wrote:
>>>
>>> I also tried this:
>>>        colors: ['black','blue','white','blue','blue','blue','blue']
>>>
>>> But none of the above work.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/1wL214-M-FIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to