Treemap - non leaf node colour

18 views
Skip to first unread message

pub...@pluhk.com

unread,
Feb 19, 2016, 10:48:46 AM2/19/16
to Google Visualization API
The non leaf nodes of my Treemap are ignoring the colour values I supply in data column 3 (colour).

The Treemap documentation for data column 2 (size) says....

'For non-leaf nodes, this value is ignored and calculated from the size of all its children.'

...but no such reference to non leaf nodes is made for column 3 (colour)...

'An optional value used to calculate a color for this node. Any value, positive or negative, is allowed. The color value is first recomputed on a scale from minColorValue to maxColorValue, and then the node is assigned a color from the gradient between minColor and maxColor'


Am I correct in assuming that even if you specify the colour of non leaf nodes it is ignored and calculated using an average of its children ?

Thanks,

Paul
Reply all
Reply to author
Forward
0 new messages