DataTable within DataTable? Or accept multi-dimension arrays?

18 views
Skip to first unread message

Sean Larson

unread,
Jan 22, 2018, 9:25:41 PM1/22/18
to Google Visualization API

My data has a two-dimensional identifier, name and scenario. What I did here was use about 30 lines of JS to determine the maximum value per unique Name, rank those values, and then inject the rank as a new column. Sort by the rank, and then the value within the rank. 

This leads me to wonder. Can you embed a DataTable within a DataTable? The first table would be the Name, MaxValue, and Records. The second table would be the Scenarios within that Name and Value. 

Probably a rarer use-case, but maybe more common for discrete axis charts. 

But you could see how now within each Name, I could change the shade based on the Scenario value to help User see the shift between groupings. 
Reply all
Reply to author
Forward
0 new messages