title: Google Chart with ajax
body: <p>I can't see what i'm missing. I can't seem to get the Google chart api running with a little bit of ajax. What am I doing wrong?</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;      
  &lt;script type="text/javascript" src="https://www.google.com/jsapi"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="jquery-1.7.2.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
    google.load("visualization", "1", {packages:["corechart"]});
    google.setOnLoadCallback(drawChart);
    function drawChart() {
     var dataSet =  $.ajax({
          url: "phpdata.php",
              async: false            
      }).responseText;
      var data = google.visualization.arrayToDataTable([
      dataSet
      ]);
  
      var options = {
        title: 'Company Performance'
      };
  
      var chart = new google.visualization.LineChart(document.getElementById('chart_div'));
      chart.draw(data, options);
    }
  
  
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
        &lt;div id="chart_div" style="width: 900px; height: 500px;"&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>my php data:</p>
  
  <p>['year', 'fixedassets'],</p>
  
  <p>['2009', 1],</p>
  
  <p>['2010', 1.2],</p>
  
  <p>['2011', 1.6]</p>