@@ -11,9 +11,19 @@ export function getBarOption(xAxis, data) {
'left': '5%',
'right': '5%',
'top': '10%',
- 'bottom': '10%',
+ 'bottom': data.length > 50 ? '20%' : '10%',
'containLabel': true
},
+ 'dataZoom': [
+ {
+ 'type': 'slider',
+ 'show': data.length > 50,
+ 'startValue': 0,
+ 'endValue': 50,
+ 'handleSize': 8,
+ 'bottom': '10%'
+ }
+ ],
'xAxis': [{
'type': 'category',
'data': xAxis,