Explorar el Código

统计图增加滚动条

wang_xy hace 2 años
padre
commit
56160db8f6
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      src/views/monitor.vue

+ 5 - 0
src/views/monitor.vue

@@ -285,6 +285,11 @@ export default {
           width: '75%',
           containLabel: true
         },
+        dataZoom: [{
+          type: 'inside',
+          start: 0,
+          end: this.sourceData.length > 15 ? 35 : 100
+        }],
         xAxis: {
           show: false,
           type: 'value'