彭宇 1 year ago
parent
commit
311ec68825
2 changed files with 7 additions and 28 deletions
  1. 5 26
      src/views/bigdata/chart-foamLiquid.vue
  2. 2 2
      src/views/bigdata/chart-waterCrane.vue

+ 5 - 26
src/views/bigdata/chart-foamLiquid.vue

@@ -95,33 +95,12 @@
               data:that.data_pmy_value
             }
           ],
-
-          series: [{
-            name: "受理数", // bar图的外边框
-            type: "bar",
-            barWidth: "20%",
-            yAxisIndex: 0,
-            data: [500, 500, 500, 500, 500].map((item, i) => {
-              return {
-                value: item,
-                itemStyle: {
-                  color: "rgba(0,0,0,0)",
-                  barBorderColor: zdslColorList[i],
-                  borderWidth: 1,
-                  shadowColor: "#33CCFF",
-                  shadowBlur: 4
-                }
-              }
-            }),
+          series: {
+            name: "泡沫液", //这个是Bar图
+            type: 'bar',
+            barWidth: 10,
+            data: that.data_pmy_value
           },
-            {
-              name: "受理数", //这个是Bar图
-              type: 'bar',
-              yAxisIndex: 1,
-              barWidth: "10%",
-              data: [150, 298, 206, 75, 154]
-            }
-          ],
           itemStyle: {
             color: function (params) {
               return zdslColorList[params.dataIndex]

+ 2 - 2
src/views/bigdata/chart-waterCrane.vue

@@ -77,7 +77,7 @@
 
         option = {
           tooltip: {
-            formatter: '{b} : {c}' + '',
+            formatter: '{b} : {c}' + '',
           },
           grid: {
             left: '3%',
@@ -157,7 +157,7 @@
                         stuNum = value.value;
                       }
                     })
-                    return stuNum + '{white| }';
+                    return stuNum + '{white| }';
                   },
                   textStyle: {
                     color: "#ffc72b",