var start=0,end=100;
dataZoom: [{
show: true,
realtime: true,
start:start,
end:end
},{
type: 'inside',
realtime: true,
}],
grid: {
left: '1%',
right: '1%',
bottom: '6%',
containLabel: true
},
yAxis: {
type: 'value',
name:obj.y,
},
series: obj.series
};
echarts_.setOption(option,true);
echarts_.on("dataZoom",function(param){
console.log(param);
if(param.end){//鼠标拖动形式
start=param.start;
end=param.end;
}else{//鼠标滚轮形式
start=param.batch[0].start;
end=param.batch[0].end;
}
})