That isn't supported by the Treemaps.  The only way to color nodes is to 
use the 4th column: the API interpolates color values for each node based 
on the relative position on the scale from the "minColorValue" to 
"maxColorValue" options' values, and interpolates an appropriate color 
between the "minColor" and "midColor" or "midColor" and "maxColor" options' 
colors.

It is conceivable that you could find some combination of "minColor", 
"midColor", and "maxColor" that allow you to interpolate all of the color 
values that you want, but I doubt that it would be easy to do (and is not 
possible with all color combinations - "red", "blue", "green", and "pink" 
would not work, for instance).

On Thursday, October 17, 2013 7:16:59 AM UTC-4, Nitsan Zohar wrote:
>
> Hi,
> I want to choose color per row in tree map,
> something like:
>
>         var data = google.visualization.arrayToDataTable([
>           ['Location', 'Parent', 'Market trade volume (size)', 'Market 
> increase/decrease (color)', 'Color'],
>           ['Global',    null,                 0,                              
>  0 , null],
>           ['America',   'Global',             0,                              
>  0, 'red'],
>           ['Europe',    'Global',             0,                              
>  0, 'blue'],
>           ['Asia',      'Global',             0,                              
>  0, 'green'],
>           ['Australia', 'Global',             0,                              
>  0, 'pink'],
>           ... 
>         ]);
>
> How can I do it?
> Thanks,
> Nitsan
>

-- 
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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to