Org Chart - data.addRows with the same name only appears once

26 views
Skip to first unread message

Sendi Yuliyadi

unread,
Sep 24, 2018, 3:44:46 AM9/24/18
to Google Visualization API
Hi. I want to ask
in data.addRows im inserted 2 rows with the same name
my code data.addRows :

// For each orgchart box, provide the name, manager, and tooltip to show.
   data.addRows([
       [{v:'Mike', f:'Mike<div style="color:red; font-style:italic">President</div>'}, '', 'The President'],
       [{v:'Jim', f:'Jim<div style="color:red; font-style:italic">Vice President</div>'}, 'Mike', 'VP'],
       ['Alice', 'Mike', ''],
       ['Bob', 'Jim', 'Bob Sponge'],
       ['Carol', 'Bob', ''],
       ['Bob', 'Alice', ''],
   ]);

how to be able to display all names in data addRows
thank you
Regards,
Sendi
Reply all
Reply to author
Forward
0 new messages