调用后台接口,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
}],
}