Update Chart.php