title: Google pie chart data table values
body: <p>In Google website the code for creating a pie chart is:</p>
  
  <pre><code>google.load("visualization", "1", {packages:["corechart"]});
    google.setOnLoadCallback(drawChart);
    function drawChart() {
      var data = google.visualization.arrayToDataTable([
        ['Task', 'Hours per Day'],
        ['Work',     11],
        ['Eat',      2],
        ['Commute',  2],
        ['Watch TV', 2],
        ['Sleep',    7]
      ]);
  
      var options = {
        title: 'My Daily Activities'
      };
  
      var chart = new google.visualization.PieChart(document.getElementById('piechart'));
      chart.draw(data, options);
  </code></pre>
  
  <p>I have a global var that I would like to set it's value and insert the new value to the chart, for instance:</p>
  
  <pre><code>    var tmp=MyGlobalVariable+10;
    google.load("visualization", "1", {packages:["corechart"]});
    google.setOnLoadCallback(drawChart);
    function drawChart() {
      var data = google.visualization.arrayToDataTable([
        ['Task', 'Hours per Day'],
        ['Work',     tmp],
        ['Eat',      3],
        ['Commute',  2],
        ['Watch TV', 2],
        ['Sleep',    7]
      ]);
  </code></pre>
  
  <p>Every time I use the tmp var it eliminates the 'work' from the chart.
  How can I dynamically set the data table values?</p>