Google Visualization: Organizational Chart with fields named the same -
i using google visualization: organizational chart link , structure working well, cannot named 2 or more fields same name in 1 row? should able that? ideas?
the orgcharts require each node have unique id, can change formatted value of nodes same:
var data = new google.visualization.datatable(); data.addcolumn('string', 'name'); data.addcolumn('string', 'parent'); data.addrows([ [{v: 'parent_node', f: 'parent node'}, null], [{v: 'child_node_1', f: 'child node'}, 'parent_node'], [{v: 'child_node_2', f: 'child node'}, 'parent_node'] ]); see example here: http://jsfiddle.net/asgallant/lphtr/
Comments
Post a Comment