Google Analytics draw chart with ga calls
<p>I am trying to draw a chart via Google's Visualization line chart. I want that line chart to be based on my Google Analytic site stats. How would I do this?</p>

<pre><code>script type="text/javascript"&gt;
  google.load("visualization", "1", {packages:["linechart"]});
  google.setOnLoadCallback(drawChart);
  function drawChart() {
    var data = google.visualization.arrayToDataTable([
      ['Date', 'Traffic', 'eCPM'],
      ['2004',  i.e ga:pageviews stats...,      1.25],
      ['2005',  1170,      5.2],
      ['2006',  660,       7.5],
      ['2007',  1030,      4.3]
    ]);

    var chart = new google.visualization.LineChart(document.getElementById('chart_div'));
    chart.draw(data, {width: 400, height: 240, legend: 'bottom', title: 'Publisher Stats'});
  }
&lt;/script&gt;
</code></pre>

<p>How would I do this? what do I have to add for this visualization chart to pull the data from my Google Analytic? To display on my chart.</p>

<p>Thank you</p>