zxr 3 anos atrás
pai
commit
447f4dd659
2 arquivos alterados com 30 adições e 28 exclusões
  1. 26 25
      src/views/taishi/index.vue
  2. 4 3
      src/views/taishi/tanshi1.vue

+ 26 - 25
src/views/taishi/index.vue

@@ -1277,7 +1277,7 @@ export default {
         "vintage"
       );
       var s = 4;
-      var z = 0;
+      var z = -1;
 
       var className = [];
       var datav = [];
@@ -1318,30 +1318,30 @@ export default {
           "#39B3FF"
         ];
         const option4 = {
-          dataZoom: [
-            //给x轴设置滚动条
-            {
-              type: "slider",
-              width: 10,
-              // handleHeight:'30%',
-              show: true,
-              yAxisIndex: [0],
-              showDetail: false,
-              left: "95%",
-              handleColor: "#39B3FF",
-              startValue: z, //数据窗口范围的起始百分比
-              endValue: s
-            },
-            {
-              type: "inside",
-              yAxisIndex: [0],
-              startValue: z, //数据窗口范围的起始百分比
-              endValue: s
-            }
-          ],
+          // dataZoom: [
+          //   //给x轴设置滚动条
+          //   {
+          //     type: "slider",
+          //     width: 10,
+          //     // handleHeight:'30%',
+          //     show: true,
+          //     yAxisIndex: [0],
+          //     showDetail: false,
+          //     left: "95%",
+          //     handleColor: "#39B3FF",
+          //     startValue: z, //数据窗口范围的起始百分比
+          //     endValue: s
+          //   },
+          //   {
+          //     type: "inside",
+          //     yAxisIndex: [0],
+          //     startValue: z, //数据窗口范围的起始百分比
+          //     endValue: s
+          //   }
+          // ],
           grid: {
             left: 10,
-            right: 30,
+            right: 20,
             bottom: 10,
             top: 1,
             containLabel: true
@@ -1474,9 +1474,10 @@ export default {
       const myColor = ["#fff", "#fff", "#fff", "#fff", "#fff"];
       const option12 = {
         grid: {
-          left: 70,
+          left: 40,
           bottom: "25%",
-          top: "15%"
+          top: "15%",
+          right:30
         },
         xAxis: {
           axisLabel: {

+ 4 - 3
src/views/taishi/tanshi1.vue

@@ -1362,7 +1362,7 @@ export default {
           // ],
           grid: {
             left: 10,
-            right: 30,
+            right: 20,
             bottom: 5,
             top: -8,
             containLabel: true
@@ -1495,9 +1495,10 @@ export default {
       const myColor = ["#fff", "#fff", "#fff", "#fff", "#fff"];
       const option12 = {
         grid: {
-          left: 70,
+          left: 40,
           bottom: "25%",
-          top: "15%"
+          top: "15%",
+          right:30
         },
         xAxis: {
           axisLabel: {