title: Uncaught Reference Error: google is not defined google charts
body: <p>I am trying to load Google charts in android application. But, it throws me error that google is not defined. Below is my HTML file and JavaScript file.</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;Patient Vitals&lt;/title&gt;
  
  &lt;link href="../../common/scripts/lib/css/jquery.mobile.theme-1.1.0.css" rel="stylesheet" type="text/css" /&gt;
  &lt;link href="../../common/scripts/lib/css/jquery.mobile-1.0.1.min.css" rel="stylesheet" type="text/css" /&gt;
  &lt;link rel="stylesheet" href="../../common/scripts/lib/css/jquery.mobile.datebox.css" /&gt;
  &lt;link href="../scripts/css.css" rel="stylesheet" type="text/css" /&gt;
  &lt;link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" /&gt;
  
  &lt;script src="../../common/scripts/jsapi.js" type="text/javascript"&gt;
      google.load('visualization', '1.0', {'packages':['corechart']});
  &lt;/script&gt;
  &lt;script src="../scripts/patient_vitals.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
          &lt;div class="PT_Care_vitals_swa_ofcurv_left"  onclick="getPatientVitalInfo();"&lt;/div&gt;   
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>patient_vitals.js:</strong></p>
  
  <pre><code>getPatientVitalInfo =function()
  {
     logInformation("Get Patient Vital Information ");
     alert("Get Patient Vital info");
     //code to retieve data from database
     drawChart(temp); 
  }
  
  drawChart = function(temp) 
  {
     alert("Inside drawChart function");
     //Convert array int DataTable
     var data = google.visualization.arrayToDataTable(temp);
     rowCount = data.getNumberOfRows();
     // Instantiate and draw our chart, passing in some options.
     chart = new google.visualization.LineChart(document.getElementById('chart_div'));
     var options = {'tooltip': {'trigger':'none'}, 'year': "numeric", 'month':      "numeric",'day': "numeric", 'pointSize':5};
     //Function to perform select operation
  
     //Drawing the chart in HTML page
     chart.draw(data, options);
  }       
  </code></pre>
  
  <p>Here, google.visualization.arrayToDataTable(temp) throws this error. Any idea about this? how to resolve it? I also tried to keep google.Visulization inside .js file. But it also not working. If I am running the same code from Browser, it is working fine. Is it problem with android?</p>