I'm trying to change the labels of the Google Charts table. I'm accessing
my data using the Google Superproxy. The method outlined
*here*<https://groups.google.com/forum/#!topic/google-visualization-api/aG72HmfNO98>doesn't
seem to work for me. See my code below. It changes the table column
headers but then the data does appear in rows.
Any suggestions would be appreciated!
<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() {
var pop = new google.visualization.ChartWrapper({
'chartType':'Table',
'dataSourceUrl':'myapp.appspot.com/query?id=grdgregerge&format=data-table-response',
'containerId':'users',
'options': {'title':'Most Popular Users', 'legend':'none'},
'view': {'columns': [{'id':
'ga:pageTitle','type':'string','label': 'Users'}, {'id': 'ga:pageviews',
'type': 'string', 'label': 'Pageviews'}]
}
});
pop.draw();
</script>
</head>
<body>
<table align="center" style="height: 1200px; width: 700px;">
<tr valign="center">
<tr>
<td style='width: 40%;'>
<div id="users" style="height: 400px; width: 300px;"
align='middle'></div>
</td>
</tr>
--
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.