Is it possible to have a two levels DataTable (rows with children) ?

15 views
Skip to first unread message

Claudio

unread,
Jun 7, 2019, 9:16:31 AM6/7/19
to Google Visualization API
Hi,
is it possible to create a Table in which the rows have children?


data = new google.visualization.DataTable(dataFromServer);

where dataFromServer should be something like:

[
  ['Mike',  new Date(2007,5,1), [['Child1', 6], ['Child2', 7]]],
  ['Bob', new Date(2007,5,1)], [['Child1', 6], ['Child2', 7], ['Child3', 6], ['Child4', 7]]],
  ['Alice', new Date(2006,7,16)], [['Child1', 6], ['Child2', 7]]],
  ['Frank', new Date(2007,11,28)], [['Child1', 6], ['Child2', 7]]],
]

Thank you very much


Claudio
Reply all
Reply to author
Forward
0 new messages