Graph does not display if have value 0 as output

10 views
Skip to first unread message

Nurul Ain

unread,
Feb 19, 2019, 10:44:47 PM2/19/19
to Google Visualization API
                                                           function drawChart() {
var data = google.visualization.arrayToDataTable([
  ['WEEK', 'PPM RESULT'],
  <?php
while($row = sqlsrv_fetch_array( $stmt, SQLSRV_FETCH_ASSOC))  
  {  
   echo "['".$row["WorkWeek"]."', ".$row["result"]."],";  
  }  
  ?>
]);
Reply all
Reply to author
Forward
0 new messages