Hi,

is there a difference between the json data used for geochart and the one 
used for column chart?
I'm asking because with the same source, the geochart is shown properly but 
the column chart doesn't work...

Here is my code for the column chart:
<html>
  <head>
    <script type="text/javascript" 
src="https://www.google.com/jsapi";></script>
    <script type="text/javascript">
      google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {

  var jsonData = jQuery.ajax({
      url: "charts/geo2.php",
      dataType:"json",
      async: false
    }).responseText;

// Create our data table out of JSON data loaded from server.
var data = new google.visualization.DataTable(jsonGeoChartData);

  var options = {
    title: 'Company Performance',
    hAxis: {title: 'Year', titleTextStyle: {color: 'red'}}
  };

  var chart = new 
google.visualization.ColumnChart(document.getElementById('chart_div'));

  chart.draw(data, options);

}
    </script>
  </head>
  <body>
    <div id="chart_div" style="width: 900px; height: 500px;"></div>
  </body>
</html>

Thank you very much in advance for your help
Manuel

-- 
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/d/optout.

Reply via email to