請教如何樣讓ECharts從后臺獲取數據并展示?
調用后臺接口,ajax獲取數據 function getspslztslbh(city,date){ $.ajax({ url: ctx+"/index/spscztGroup.do ", type:"post", data: { "city": city, "date":date }, dataType: "json", success: function(data){ 拿到數據重新setoption myChartz.setOption({ xAxis: { data: data.list2 }, yAxis: [{ min: mind, max: maxd, interval: ava1 },{ min: mind3, max: maxd3, interval: ava2 }], }