[Chartjs]-Bar Chart.js doesn't show values with PHP, MySQL, AJAX

1👍

You are creating an Array of Arrays. I believe this will fix this issue.

while($row = mysql_fetch_array($res)){
    $totalpurchases[] = $row['total'];
}

while($roww = mysql_fetch_array($ress)){
    $totalsales[] = $roww['total'];
}

Leave a comment