fix AmCharts syntax errors