ec=echarts.init(document.getElementById("inside_conRelativeAndComein")) var option1 = { tooltip: { trigger: 'axis' }, title:{ subtext:'单位:例', text:"全国 总新增确诊/新增境外输入确诊 趋势", left: 'left', textStyle:{ color:'black', } }, legend: { left:'right', top:'30', data: ['总新增确诊', '新增境外输入确诊'] }, grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true }, toolbox: { feature: { saveAsImage: {} } }, xAxis: { type: 'category', data: [] }, yAxis: { axisLine: { show: false }, type: 'value' }, series: [{ name:'总新增确诊', data: [], type: 'line', smooth: true },{ name:'新增境外输入确诊', data: [], type: 'line', smooth: true }] }; $.ajax({ cache: false, type:"GET", url:"/inside_conRelativeAndComein", data: null, dataType : "json", async: false, error: function(request) { alert("发送请求失败!7"); }, success: function(result) { // conRelative,comein,relativetime console.info(result) for(i=0;i