21,886
社区成员
发帖
与我相关
我的任务
分享
$.post(url, function(res){
//console.log(res);
if(res.code == 1){
try{
var option = myChart.getOption();
option.xAxis[0].data = res.data.xAxis;
option.series[0].data = res.data.series1;
myChart.clear();
myChart.setOption(option, {notMerge:true});
}catch(e){}
}
}, 'json').error(function(){
});