Explorar o código

统计图增加滚动条

wang_xy %!s(int64=2) %!d(string=hai) anos
pai
achega
56160db8f6
Modificáronse 1 ficheiros con 5 adicións e 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'