roose 5 years ago
parent
commit
cbb5c3129d
1 changed files with 10 additions and 8 deletions
  1. 10 8
      src/components/PatrolmanStatistics/2.vue

+ 10 - 8
src/components/PatrolmanStatistics/2.vue

@@ -117,18 +117,20 @@
             this.myChart = this.$echarts.init(document.getElementById('ww'));
             this.myChart = this.$echarts.init(document.getElementById('ww'));
             this.myChart.setOption({
             this.myChart.setOption({
                 color: [this.colorArr[0].color1, this.colorArr[0].color1, this.colorArr[1].color1],
                 color: [this.colorArr[0].color1, this.colorArr[0].color1, this.colorArr[1].color1],
-                // legend: {
-                //   data: ["党员", "群众"],
-                //   left: 'right',
-                //   textStyle: {
-                //     color: "#fff"
-                //   }
-                // },
+                legend: {
+                  data: ["党员", "群众"],
+                  left: 'right',
+                  textStyle: {
+                    color: "#fff"
+                  },
+                  padding:[45, 30,0 ,0],
+                },
                 grid: {
                 grid: {
                     left: '20%',
                     left: '20%',
                     right: '15%',
                     right: '15%',
-                    bottom: '5%',
+                    bottom: '10%',
                     height: '80%',
                     height: '80%',
+                   top:'20%',
                     containLabel: true
                     containLabel: true
                 },
                 },
                 xAxis: [
                 xAxis: [