title: Google chart using https://www.gstatic.com/charts/loader.js
body: <p>I have a simple code which loads the array of content and draws a pie chart.</p>
  
  <pre><code>&lt;script type=text/javascript src=https://www.gstatic.com/charts/loader.js&gt;&lt;/script&gt; 
  &lt;script type=text/javascript&gt; 
        google.charts.load('current', {'packages':['corechart']});
        google.charts.setOnLoadCallback(drawChart);
  
        function drawChart() {
  
          var data = google.visualization.arrayToDataTable([
            ['Task', 'Hours per Day'],
            ['Work',     11],
            ['Eat',      2],
            ['Commute',  2],
            ['Watch TV', 2],
            ['Sleep',    7]
          ],false);
  
          var options = {
            title: 'My Daily Activities'
          };
  
          var chart = new google.visualization.PieChart(document.getElementById('piechart'));
  
          chart.draw(data, options);
        }
      &lt;/script&gt;
  
  &lt;div id="piechart" style="width: 900px; height: 500px;"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I want to data table to be read from a txt file, content of the same is given below:</p>
  
  <pre><code>Task,Hours Per Day
  Work,11
  Eat,2
  Sleep,7
  </code></pre>
  
  <p>Is there any way to directly load the txt file in the above code? The file might keep on changing as well.</p>