Update charts.php