echarts设置了dataZoom后 滑动停止时可以将滑动方向最接近中心点的数据项选中吗 就是keep这个效果
配置项如下
option = {
color: ['#3398DB'],
tooltip : {
trigger: 'axis',
axisPointer : { // 坐标轴指示器,坐标轴触发有效
type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
}
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
dataZoom: [{
type: 'inside',
startValue: 16,
endValue: 19
}],
xAxis : [
{
type : 'category',
data : [1,,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],
axisTick: {
alignWithLabel: true
}
}
],
yAxis : [
{
type : 'value'
}
],
series : [
{
name:'直接访问',
type:'bar',
barMaxWidth: 10,
data:[10, 52, 200, 334, 390, 330, 220,10, 52, 200, 334, 390, 330, 220,34, 390, 330, 220,10, 52,]
}
]
};