Function AmCharts.loadJSON to make chart