title: Query CSV file with google visualization query
body: <p>I am trying to query a csv file with google visualization query but every time I am getting 'Error in query: 404 file not found' error and am not able to resolve it.</p>
  
  <p>any pointers / suggestions / thought would be highly appreciated.</p>
  
  <p>Note - the csv file exists on my local server and if click on link <a href="http://localhost:35802/test.csv" rel="nofollow">http://localhost:35802/test.csv</a> it downloaded the file for me</p>
  
  <p>here is my code -- </p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;script type="text/javascript"     src="https://www.gstatic.com/charts/loader.js"&gt;&lt;/script&gt;
  &lt;script&gt;
      function initialize() {
          //var opts = { sendMethod: 'auto' };
          // Replace the data source URL on next line with your data source URL.
          var query = new google.visualization.Query('csv?url=http://localhost:35802/test.csv');
  
          // Optional request to return only column C and the sum of column B, grouped by C members.
          query.setQuery('select * ');
  
          // Send the query with a callback function.
          query.send(handleQueryResponse);
      }
  
      function handleQueryResponse(response) 
      {
          if (response.isError()) 
          {
            alert('Error in query: ' + response.getMessage() + ' ' + response.getDetailedMessage());
            return;
          }
  
          //alert(response);
          var data = response.getDataTable();
          var chart = new google.visualization.ColumnChart(document.getElementById('chart_div'));
          chart.draw(data, { height: 400 });
  
      }
  &lt;/script&gt;
          &lt;script type="text/javascript"&gt;
        google.charts.load('current', {packages: ['corechart']});
        google.charts.setOnLoadCallback(initialize);
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="chart_div"&gt;&lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>here is my csv file content -- 
      A,B,C
      1,2,3
      4,5,6</p>