Hi,
I don't know if changes have been made recently to the Visualization,
but many of the charts and graphs I had set up using Google
visualization are now rendering differently, and it appears to be a
problem recognizing the "hasLabelsColumn" tag, or perhaps the
'headers' tag in the URL. Also, I just changed the vAxis tag sitewide
to update the % tag to the new format (I created this about a year
ago). Here's an example:
For this page:
http://stateofworkingwa.org/poverty.htm
Clearly, that line graph is now incorrect - it is drawing info from
this Google Doc (
https://docs.google.com/spreadsheet/ccc?
key=0Al3deEsqJkrrdE9mN2Y0LUNEX3BQcWlwdjJ2Nk5qenc&hl=en_US#gid=0), and
until recently displayed just fine.
Here's the code:
<head>
<script type="text/javascript">
google.load("visualization", "1", {packages:
["corechart"]});
google.setOnLoadCallback(initialize);
function initialize() {
var query = new google.visualization.Query('https://
spreadsheets.google.com/tq?
key=0Al3deEsqJkrrdE9mN2Y0LUNEX3BQcWlwdjJ2Nk5qenc&range=A2%3AC12&gid=0&transpose=0&headers=1&pub=1');
query.send(handleQueryResponse);
}
function handleQueryResponse(response) {
if (response.isError()) {
alert('Error in query: ' + response.getMessage() + ' ' +
response.getDetailedMessage());
return;
}
var data = response.getDataTable();
var chart = new
google.visualization.LineChart(document.getElementById('visualization'));
chart.draw(data,
{
legend:"right",
displayAnnotations:true,hasLabelsColumn:true,vAxis: {textPosition:
'none',},
title: "Percentage of People Living in Poverty, United States
and Washington, 2009",
pointSize:4, hAxis: {slantedText:true,}, vAxis: {format:
'#0.00%',},
width: 650, height: 400,});/*smaller width
than other because x-axis labels stack when chart is 640px*/
}
</script>
</head>
<body>
<div id="visualization" title="Percentage of People Living in Poverty,
United States and Washington" style="width: 650px; height: 400px;"></
div>
</body>
I'd really appreciate some help with this issue.
Thank you,
Alex