Explorar el Código

调整图表位置

gcz hace 2 años
padre
commit
35d08f953a

+ 1 - 7
src/dataSchema/page2Char2Schema.js

@@ -13,7 +13,7 @@ let page2Char2Schema = {
     },
     },
     grid: {
     grid: {
         containLabel: true,
         containLabel: true,
-        top: "20px",
+        top: "30px",
         left: '10px',
         left: '10px',
         bottom: '20px',
         bottom: '20px',
         right: '24px'
         right: '24px'
@@ -29,12 +29,6 @@ let page2Char2Schema = {
             color: '#fff',
             color: '#fff',
         }
         }
     },
     },
-    grid: {
-        left: '3%',
-        right: '4%',
-        bottom: '3%',
-        containLabel: true
-    },
     yAxis: {
     yAxis: {
         type: 'value',
         type: 'value',
         axisLabel: {
         axisLabel: {

+ 2 - 8
src/dataSchema/page2Char3Schema.js

@@ -13,7 +13,7 @@ let page6Char1Schema = {
     },
     },
     grid: {
     grid: {
         containLabel: true,
         containLabel: true,
-        top: "0%",
+        top: "30px",
         left: '10px',
         left: '10px',
         bottom: '20',
         bottom: '20',
         right: '24px'
         right: '24px'
@@ -25,17 +25,11 @@ let page6Char1Schema = {
         }
         }
     },
     },
     legend: {
     legend: {
-        top: 0,
+        top: '0',
         textStyle: {
         textStyle: {
             color: '#fff',
             color: '#fff',
         }
         }
     },
     },
-    grid: {
-        left: '3%',
-        right: '4%',
-        bottom: '3%',
-        containLabel: true
-    },
     yAxis: {
     yAxis: {
         type: 'value',
         type: 'value',
         axisLabel: {
         axisLabel: {

+ 1 - 7
src/dataSchema/page6Char1Schema.js

@@ -13,7 +13,7 @@ let page6Char1Schema = {
     },
     },
     grid: {
     grid: {
         containLabel: true,
         containLabel: true,
-        // top: "0",
+        top: "30px",
         left: '10px',
         left: '10px',
         bottom: '20',
         bottom: '20',
         right: '24px'
         right: '24px'
@@ -29,12 +29,6 @@ let page6Char1Schema = {
             color: '#fff',
             color: '#fff',
         }
         }
     },
     },
-    grid: {
-        left: '3%',
-        right: '4%',
-        bottom: '3%',
-        containLabel: true
-    },
     yAxis: {
     yAxis: {
         type: 'value',
         type: 'value',
         axisLabel: {
         axisLabel: {

+ 5 - 4
src/dataSchema/page6Char2Schema.js

@@ -21,10 +21,11 @@ let page6Char2Schema = {
         }
         }
     },
     },
     grid: {
     grid: {
-        left: '3%',
-        right: '24px',
-        bottom: '3%',
-        containLabel: true
+        containLabel: true,
+        top: "30px",
+        left: '10px',
+        bottom: '20px',
+        right: '24px'
     },
     },
     toolbox: {
     toolbox: {
         // feature: {
         // feature: {