Thanks for your reply. This is exactly what I ended up doing (unfortunately).
If anyone from Google's dev team is reading this. Here is a new feature request for you ;-) On Monday, October 7, 2013 3:41:12 PM UTC+2, trybka wrote: > > This type of nesting is not really supported. > > I suspect you could use python to manipulate your data into a structure > the gviz_api could consume with a simpler table_spec. > > > On Mon, Sep 30, 2013 at 10:48 AM, Rune Thougaard Kristensen < > [email protected] <javascript:>> wrote: > >> Hi, I'm trying to populate the following data into a Google Charts Table >> using an external data source. My data is structured like this, and >> converted to JSON using the Google Visualization API (gviz_api Python lib) >> >> { >> 'addr': '127.0.0.1', >> 'applications': [{ >> 'data': 'Microsoft-IIS/7.0', >> 'port': '80'}], >> 'host': 'www.example.com' >> } >> >> My table description looks like this: >> >> { >> 'addr': ("string", "IP address"), >> 'host': ("string", "FQDN"), >> 'applications.data': ("string", "Application Data") >> } >> >> Gluing all this together the final code looks something like this: >> >> <script type="text/javascript" src=' >> https://www.google.com/jsapi?autoload={"modules":[{"name":"visualization","version":"1"}]}'> >> >> </script> >> <script type="text/javascript"> >> google.setOnLoadCallback(drawVisualization); >> function drawVisualization() { >> // Define the chart using setters: >> var wrap = new google.visualization.ChartWrapper({ >> 'chartType':'Table', >> 'dataSourceUrl':'/data?t=gviz_json', >> 'containerId':'visualization', >> 'options': { >> 'allowHtml': 'True', >> 'page': 'enable', >> 'pageSize': 25, >> 'height': '100%', >> 'pagingButtonsConfiguration': 'auto', >> 'showRowNumber': 'true', >> } >> }); >> wrap.draw(); >> } >> </script> >> <div id='visualization' style='height: 100%; width: 100%;'></div> >> >> However, the Chart Table is only showing the 'addr' and 'host' values. >> The applications.data is NOT populated to the Chart. What am I doing wrong? >> Perhaps pointing at child elements in the data structure is not supported? >> >> -- >> 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 [email protected]<javascript:> >> . >> To post to this group, send email to >> [email protected]<javascript:> >> . >> Visit this group at >> http://groups.google.com/group/google-visualization-api. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/groups/opt_out.
