title: Line graph data HighChart JS cannot shown
body: <p>i wannna make a line graph  using highchart JS with data from my SQL, but unfortunately the graph just shown like this :</p>
  
  <p><a href="https://i.stack.imgur.com/dLxjL.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dLxjL.jpg" alt="enter image description here"></a></p>
  
  <p>the graph just shown a Xline and Yline but not a data
  and this is my sql code</p>
  
  <pre><code>$sqlX=mysql_query("SELECT DISTINCT DAY(tgl_daftar) as value FROM pasien WHERE MONTH(tgl_daftar) = '06' AND YEAR(tgl_daftar)='2016'")or die(mysql_error()) ;
  </code></pre>
  
  <p>and this my php and JS code :</p>
  
  <pre><code> &lt;script src="js/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="js/highcharts.js"&gt;&lt;/script&gt;
  &lt;script src="js/exporting.js"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
  var chart1 ;
  $(document).ready(function() {
      chart1 = new Highcharts.Chart({
          chart: {
              renderTo: 'grafik',
              type: 'column'
           },   
          title: {
              text: 'Data Pendaftaran Pasien Baru Per Bulan',
              x: -20 //center
          },
          subtitle: {
              text: '',
              x: -20
          },
          xAxis: {
              categories: [&lt;?php while($r=mysql_fetch_array($sqlX)){ echo "'".$r['value']."',";} ?&gt;]
          },
          yAxis: {
              title: {
                  text: 'Jumlah'
              },
              plotLines: [{
                  value: 0,
                  width: 1,
                  color: '#808080'
              }]
          },
          tooltip: {
              valueSuffix: ''
          },
          legend: {
              layout: 'vertical',
              align: 'right',
              verticalAlign: 'middle',
              borderWidth: 0
          },
          series: [{
              name: &lt;?php echo "'".$namabulan."'" ; ?&gt;
              &lt;?php 
              while($date=mysql_fetch_array($sqlX)){ 
                              $date=$date['value'];                     
                                  $sql_jumlah   = "SELECT tgl_daftar, COUNT(*) as jumlah_pasien 
                                                  FROM pasien 
                                                  WHERE 
                                                  DAY(tgl_daftar) = '$date' 
                                                  AND MONTH(tgl_daftar)='$bulan' AND YEAR(tgl_daftar) = '$namatahun'";        
                                      $query_jumlah = mysql_query( $sql_jumlah ) or die(mysql_error());
                                          while( $data = mysql_fetch_array( $query_jumlah ) ){
                                              $jumlah = $data['jumlah_pasien'];  }             
                                      ?&gt;
  
                data: [&lt;?php echo $jumlah ; ?&gt;]
  
              &lt;?php   
                  } ?&gt;
          }]
      });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>thanks, Any help would be really appreciated</p>