Browse Source

年龄统计高度,资源分布

lchao 11 months ago
parent
commit
da78fb6e93
2 changed files with 9 additions and 12 deletions
  1. 1 1
      zhsq_qk-ui/src/store/modules/common.js
  2. 8 11
      zhsq_qk-ui/src/views/fusion/jczl.vue

+ 1 - 1
zhsq_qk-ui/src/store/modules/common.js

@@ -1,5 +1,5 @@
 const state = {
-    echarts_baseStreamer : 'path://M891.733333 554.666667H132.266667a4.266667 4.266667 0 0 1-4.266667-4.266667v-76.8a4.266667 4.266667 0 0 1 4.266667-4.266667h759.466666a4.266667 4.266667 0 0 1 4.266667 4.266667v76.8a4.266667 4.266667 0 0 1-4.266667 4.266667z',
+    echarts_baseStreamer : 'path://M960.406636 698.413644c0-247.648286-200.75835-448.405613-448.405613-448.40561301s-448.405613 200.75835-448.405613 448.40561301c0 25.761734 2.203178 51.004651 6.374174 75.578326L954.031439 773.991969C958.203458 749.419318 960.406636 724.175377 960.406636 698.413644z',
 
 }
 

+ 8 - 11
zhsq_qk-ui/src/views/fusion/jczl.vue

@@ -182,7 +182,7 @@
       <div class="qkq_bmfw">
         <div
           id="sprh-xbbl"
-          style="margin: 10px auto; width: 350px; height: 190px"
+          style="margin: 10px auto; width: 350px; height: 260px"
         ></div>
       </div>
 
@@ -191,15 +191,15 @@
       <div class="qkq_bmfw">
         <div
           id="sprh-nl"
-          style="margin: 10px auto; width: 350px; height: 190px"
+          style="margin: 10px auto; width: 350px; height: 260px"
         ></div>
       </div>
-
+      <!-- 年龄比例 -->
       <!-- 婚姻比例 -->
       <div class="qkq_bmfw">
         <div
           id="sprh-hy"
-          style="margin: 10px auto; width: 350px; height: 190px"
+          style="margin: 10px auto; width: 350px; height: 260px"
         ></div>
       </div>
 
@@ -1196,9 +1196,6 @@ export default {
       for (var i = 0; i < data.length; i++) {
         monthData.push(data[i]);
         var lineNumber = Math.floor(Math.random() * 1000);
-        if (lineNumber > 750) { // 如果超过,将高度限制在**以内
-          lineNumber = 723;
-        }
         lineData.push(lineNumber);
       }
 
@@ -1214,10 +1211,10 @@ export default {
           }
         },
         grid: {
-          left: '15%',
-          top: '10%',
-          bottom: '12%',
-          right: '8%'
+          left: '10%',
+          top: '15%',
+          bottom: '15%',
+          right: '5%'
         },
         xAxis: {
           data: monthData,