title: Error in response to storage.get: TypeError: Cannot read property 'style' of null
body: <p>I am trying to get data from an oracle database into an LineChart using GoogleCharts but I am always confronted with some errors.</p>
  
  <p>If someone could help me, it'd be greatly appreciated !</p>
  
  <p>Here is the script in order to get the line chart :</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  
  
      &lt;script type="text/javascript" src="https://www.google.com/jsapi"&gt;&lt;/script&gt;
      &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
  
  
      $( document ).ready(function() {
  
        google.load("visualization", "1", {packages:["corechart"]});
          google.setOnLoadCallback(drawChart);
  
          function drawChart (callback) {
          var jsonData = $.ajax({
              type: "POST",
              contentType: "application/json; charset=utf-8",
              url:"getData.php",
              dataType:"json",
              async:false,
  
  
  
          }).responseText;
  
          //Create our data table out of JSON data loaded from server
          var data = new google.visualization.DataTable(jsonData);
  
          //PieCharts expects 2 columns of data: a label and a value, so we need to use a DataView to restrict to 2 columns
          var view = new google.visualization.DataView(data);
          view.setColumns([0, 1]);
  
  
          var options = {
        title: 'Whatever'
      };
          //Instantiate and draw our chart, passing in some options
          var chart = new google.visualization.LineChart(document.getElementById('chart_div'));
          chart.draw(data, options);
      }
      });
  
  
  
  
      &lt;/script&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
       &lt;!--Div that will hold the pie chart--&gt;
  &lt;div id="chart_div"&gt;Test&lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>And here is the Phpscript to get the data into a table :</p>
  
  <pre><code>    &lt;?php 
  
  
  
  
  
  //On exécute la requete
  
  
  
  
  
  
  
  
  
  //on appelle la page connexion
  include 'connexion.php';
  
  //La requete
  
  $query = "
  
  select A.*  
  from (
  SELECT 
           EB_RESULTAT_DTM.VALEUR AS EB_RESULTAT_VALEUR, 
           EB_RESULTAT_DTM.INSERT_DATE AS EB_RESULTAT_INSERT_DATE,
  
           rank() over (partition by EB_INDICATEUR_DTM.INDICATEUR_NUM,to_char(EB_RESULTAT_DTM.INSERT_DATE,'yyyymm') order by to_char(EB_RESULTAT_DTM.INSERT_DATE,'yyyymmdd') asc) as rang,
           to_char(EB_RESULTAT_DTM.INSERT_DATE,'yyyymm') as MOIS_M
      FROM COMPTEUR_OWNER.EB_DOMAINE_DTM EB_DOMAINE_DTM
           INNER JOIN
           COMPTEUR_OWNER.EB_INDICATEUR_DTM EB_INDICATEUR_DTM
              ON EB_DOMAINE_DTM.EB_DOMAINE_DTM_NUM =
                    EB_INDICATEUR_DTM.X_EB_DOMAINE_DTM_NUM
           INNER JOIN
           COMPTEUR_OWNER.EB_RESULTAT_DTM EB_RESULTAT_DTM
              ON EB_INDICATEUR_DTM.INDICATEUR_NUM =
                    EB_RESULTAT_DTM.X_EB_INDICATEUR_DTM_NUM
     WHERE     EB_INDICATEUR_DTM.INDICATEUR_NUM = 106
           AND EB_RESULTAT_DTM.INSERT_DATE BETWEEN ADD_MONTHS (SYSDATE, -9) 
                                                 AND SYSDATE
  ) a where a.rang=1
  ";
  
  $stid = oci_parse($conn, $query);
  oci_execute($stid);
  
  $table = array();
  $table['cols'] = array(
      /* define your DataTable columns here
       * each column gets its own array
       * syntax of the arrays is:
       * label =&gt; column label
       * type =&gt; data type of column (string, number, date, datetime, boolean)
       */
      array('label' =&gt; 'Nombres', 'type' =&gt; 'number'),
      array('label' =&gt; 'Date', 'type' =&gt; 'date'),
      // etc...
  );
  
  $rows = array();
  while($r = oci_fetch_assoc($stid)) {
      $temp = array();
      // each column needs to have data inserted via the $temp array
      $temp[] = array('v' =&gt; $r['EB_RESULTAT_VALEUR']);
      $temp[] = array('v' =&gt; $r['EB_RESULTAT_INSERT_DATE']);
      // etc...
  
      // insert the temp array into $rows
      $rows[] = array('c' =&gt; $temp);
  }
  
  // populate the table with rows of data
  $table['rows'] = $rows;
  
      // encode the table as JSON
      $jsonTable = json_encode($table);
  
  
  
      // return the JSON data
      echo $jsonTable;
  
      ?&gt;
  </code></pre>
  
  <p>I ever get this message : </p>
  
  <pre><code>Error in response to storage.get: TypeError: Cannot read property 'style' of null
  </code></pre>
  
  <p>Or : </p>
  
  <pre><code>undefined is not a function
  </code></pre>