The TreeMaps use the values of the leaf nodes to calculate size and color 
of the parent nodes, and there's no way to override that without faking the 
chart into believing that all nodes are the bottom leaf nodes.

I suppose it might be possible to backwards calculate the values you would 
need the child nodes to have in order to get the size/color of the parent 
nodes right, and present the TreeMap with a DataTable that reflects those 
values, but doing so might prove prohibitively difficult to implement.

On Friday, September 20, 2013 10:22:14 PM UTC-4, alice moon wrote:
>
> Is there any other way to let the maxDepth work?I really want this 
> function.thanks!
> 在 2013-9-20 下午10:32,"asgallant" <[email protected] <javascript:>>写道:
>
>> No, the "maxDepth" option is incompatible with this code.
>>
>> On Friday, September 20, 2013 2:32:21 AM UTC-4, alice moon wrote:
>>>
>>> Hi Asgallant,
>>> If I use the example you provide, the "maxDepth" property lose its 
>>> function . can you help me resolve this?
>>>
>>> Thanks,
>>> Anna
>>>
>>> On Wednesday, September 18, 2013 10:35:36 PM UTC+8, asgallant wrote:
>>>>
>>>> Doing that isn't supported in the API, but you can use the code example 
>>>> here: 
>>>> http://jsfiddle.net/asgallant/**NpsUh/7/<http://jsfiddle.net/asgallant/NpsUh/7/>as
>>>>  a starting point.  This is designed to change the way the node values 
>>>> are calculated, but you can adapt it to use unique color values for each 
>>>> node instead of changing the way the nodes are calculated.
>>>>
>>>> On Wednesday, September 18, 2013 5:52:17 AM UTC-4, alice moon wrote:
>>>>>
>>>>> Hi all,
>>>>> How can I set the color value for the Group Node, I don't want  the 
>>>>> Group Node color value have any relationship with their Children Node 
>>>>> color 
>>>>> values.
>>>>>
>>>>> Thanks,
>>>>> Alice
>>>>>
>>>>> On Friday, August 31, 2012 12:26:43 AM UTC+8, asgallant wrote:
>>>>>>
>>>>>> There is no setting that will do this for you.  You should be able to 
>>>>>> fake it by using 
>>>>>> DataViews<https://developers.google.com/chart/interactive/docs/reference#DataView>and
>>>>>>  grouping 
>>>>>> data<https://developers.google.com/chart/interactive/docs/reference#google_visualization_data_group>,
>>>>>>  
>>>>>> changing the criteria used to build them in "select" and "rollup" event 
>>>>>> handlers.
>>>>>>
>>>>>> On Thursday, August 30, 2012 10:15:18 AM UTC-4, TUwel wrote:
>>>>>>>
>>>>>>> Hi, i have a question in term of TreeMaps with GoogleChart. Example: 
>>>>>>> https://developers.google.com/**chart/interactive/docs/**
>>>>>>> gallery/treemap<https://developers.google.com/chart/interactive/docs/gallery/treemap>
>>>>>>>  
>>>>>>> I want to adjust the node vale, that he takes the sum not 
>>>>>>> the average of the childs .
>>>>>>>  
>>>>>>> For Example:
>>>>>>> Min Scale = -52
>>>>>>> Max Scale = 63
>>>>>>> Europe: -11,-2,-13,4,-5 = -27   
>>>>>>> but he takes the value -27/5 =  -5,4 
>>>>>>>  
>>>>>>> I want that he takes -27 not the average, can someone help me?
>>>>>>>  
>>>>>>> best regards
>>>>>>>
>>>>>>  -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Google Visualization API" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/google-visualization-api/QDlskEluq-E/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] <javascript:>.
>> To post to this group, send email to 
>> [email protected]<javascript:>
>> .
>> Visit this group at 
>> http://groups.google.com/group/google-visualization-api.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>

-- 
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