Kaynağa Gözat

增加偷盗林木

gcz 2 yıl önce
ebeveyn
işleme
117dde6b30
2 değiştirilmiş dosya ile 17 ekleme ve 1 silme
  1. 15 0
      src/dataSchema/page6Char1Schema.js
  2. 2 1
      src/views/index.vue

+ 15 - 0
src/dataSchema/page6Char1Schema.js

@@ -127,6 +127,21 @@ let page6Char1Schema = {
                 normal: { color: "rgb(255, 255, 0)" },
                 normal: { color: "rgb(255, 255, 0)" },
             }
             }
         },
         },
+        {
+            name: '偷盗林木',
+            type: 'bar',
+            stack: 'total',
+            label: {
+                show: false
+            },
+            emphasis: {
+                focus: 'series'
+            },
+            data: [1, 8, 8, 2, 6, 9, 9],
+            itemStyle: {//自定义颜色
+                // normal: { color: "rgb(255, 255, 0)" },
+            }
+        },
     ]
     ]
 
 
 }
 }

+ 2 - 1
src/views/index.vue

@@ -3,7 +3,7 @@
  * @Author: wangcc
  * @Author: wangcc
  * @Date: 2022-07-06 15:56:45
  * @Date: 2022-07-06 15:56:45
  * @LastEditors: gcz
  * @LastEditors: gcz
- * @LastEditTime: 2022-07-06 17:25:06
+ * @LastEditTime: 2022-07-07 10:55:54
  * @FilePath: \castgroup_bigscreen\src\views\index.vue
  * @FilePath: \castgroup_bigscreen\src\views\index.vue
  * @Copyright: Copyright (c) 2016~2022 by wangcc, All Rights Reserved. 
  * @Copyright: Copyright (c) 2016~2022 by wangcc, All Rights Reserved. 
 -->
 -->
@@ -975,6 +975,7 @@ export default {
             this.page6Char1.series[0].data.push(element.pestCount);
             this.page6Char1.series[0].data.push(element.pestCount);
             this.page6Char1.series[1].data.push(element.fireCount);
             this.page6Char1.series[1].data.push(element.fireCount);
             this.page6Char1.series[2].data.push(element.cutCount);
             this.page6Char1.series[2].data.push(element.cutCount);
+            this.page6Char1.series[3].data.push(element.stealCount);
           });
           });
           // console.log('x坐标',  this.page6Char1.xAxis.data)
           // console.log('x坐标',  this.page6Char1.xAxis.data)