Hi,In a Treemap chart, 2 nodes should be able to have the same name if they don't have the same parent.function drawVisualization() {
// Create and populate the data table.
var data = google.visualization.arrayToDataTable([
['Child' , 'Parent', 'Size', 'Color'],
['Global', null, 0, 0],
['Child1', 'Global', 0, 0],
['Child2', 'Global', 0, 0],
['ChildA', 'Child1', 10, 0],
['ChildB', 'Child1', 10, 0],
['ChildA', 'Child2', 10, 0],
['ChildB', 'Child2', 10, 0]
]);
// Create and draw the visualization.
var treemap = new google.visualization.TreeMap(document.getElementById('visualization'));
treemap.draw(data, {
minColor: 'red',
midColor: '#ddd',
maxColor: '#0d0',
maxDepth: 2,
headerHeight: 15,
fontColor: 'black',
showScale: true});
}Following code raises "More than one row with the same ID (ChildA)", it should not.Olivier--
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/-/azc-Uov2mDMJ.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Ribardiere ,
dan
To unsubscribe from this group, send email to google-visualization-api+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton MA
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/efVJtGVWHDcJ.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
dan
Ribardiere ,
dan
To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton MA
--To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/efVJtGVWHDcJ.
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualization-api+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
...
--
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.