But is there a better way to fix it?
Also, after I have changed the year a couple times, everything on the
chart goes crazy. The chart will stay normal sometimes, and then it
will randomly switch back and forth to old maps. If I hover over the
countries, it displays the wrong year. I tried setting breakpoints in
firebug, but my drraw function is not being called.
What's going on? thanks
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
function handleQueryResponse(response){
if(response.isError()){ alert('Error in query: ' +
response.getMessage() + ' ' + response.getDetailedMessage());}
var data = response.getDataTable();
if(my_init)
{
var options = {'width': 750, 'height': 400};
var container = document.getElementById('map_canvas');
var geochart = new google.visualization.GeoChart(container);
my_init = false;
initializeSlider();
geochart.draw(data, options);
}
else
{
var options = {'width': 750, 'height': 400};
var container = document.getElementById('map_canvas');
var geochart = new google.visualization.GeoChart(container);
geochart.draw(data, options);
}
}
function handleQueryResponse(response){
if(response.isError()){ alert('Error in query: ' +
response.getMessage() + ' ' + response.getDetailedMessage());}
data = response.getDataTable();
if(my_init)
{
options = {'width': 750, 'height': 400};
container = document.getElementById('map_canvas');
geochart = new google.visualization.GeoChart(container);
my_init = false;
initializeSlider();
geochart.draw(data, options);
}
else
{
geochart.draw(data, options);
}
}