wang_xy 2 years ago
parent
commit
96fa00017c
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/views/datacenter.vue

+ 9 - 0
src/views/datacenter.vue

@@ -205,6 +205,15 @@ export default {
           trigger: 'item'
 
         },
+        dataZoom: [{
+          show: true,
+          type: 'slider',
+          yAxisIndex: 0,
+          left: 0,
+          start: 0,
+          end: this.source.length > 8 ? 8 : 100,
+          width: 15
+        }],
         grid: {
           top: '5%',
           left: '2%',