Update amachart.php