那应该如何清空呢?option比较长:
this.chart3_1.setOption({
title: {
text: (this.isEn)? this.$t('SG')+' (mg/dL)':this.$t('SG')+' (mmol/L)',
textStyle: this.textStyle,
padding: this.titlePadding,
},
tooltip:{},
xAxis: [{
type: 'time',
boundaryGap: false,
min:new Date(this.startTime),
max:new Date(this.startTime+8.64e7),
axisLine: {lineStyle: {color: '#ccc'}},
splitNumber: 24,
splieLine:{show:true},
axisLabel:{
margin: 15, textStyle: {color: '#282828', baseline: 'middle'} ,
formatter:function (value,index) {
let H = new Date(value).getHours();
if(index<24){
if(index%3===0){
H = H<10 ? ('0'+H+':00' ): H+':00';
return H;
}else{
return ' ';
}
}else{
return H+24+':00';
}
}
},
}],
yAxis: [{
type: 'value',
min:0,max:(this.isEn)? 400:25,
axisLabel: this.yAxisLabel,
axisLine: {lineStyle: {color: '#ccc'}},
boundaryGap: false,
axisTick: {length: 0},
}],
grid: this.grid,
animation:false,
dataZoom:[
{
id:'dataZoomX',
type:'slider',
xAxisIndex:0,
filterMode:&