官方链接说明:官方链接
编写实现例子:
dataZoom = [{
height: 15, //高度
type: "slider",
// show: true,
xAxisIndex: [0], //控制第一个x轴
left: '10%',
bottom: 20, //图表底部距离
handleSize: 10,//左右2个滑动条的大小
borderColor: "#eee", //滑动通道的边框颜色
fillerColor: '#009688', //滑动条颜色
backgroundColor: '#eee',//未选中的滑动条的颜色
showDataShadow: false,//是否显示数据阴影 默认auto
rangeMode: ['value', 'value'],
minValueSpan: 0,
maxValueSpan: 9,
startValue: 0,
endValue: 9,
handleIcon: "arrow",
handleSize: "80%",
}];
效果如图所示: