Update chart.php