liyongli 3 年之前
父節點
當前提交
29aefc27f2
共有 2 個文件被更改,包括 13 次插入3 次删除
  1. 8 3
      src/views/AdvertisingEye/components/tranche.vue
  2. 5 0
      src/views/AdvertisingEye/components/trancheB.vue

+ 8 - 3
src/views/AdvertisingEye/components/tranche.vue

@@ -240,9 +240,9 @@ export default {
           stack: "total",
           label: {
             show: true,
-            formatter:(item) =>{
-                return item.value + '%'
-            }
+            formatter: item => {
+              return item.value + "%";
+            },
           },
           emphasis: {
             focus: "series",
@@ -298,6 +298,11 @@ export default {
         color: ["#1b9ade", "#fd5555"],
         xAxis: {
           type: "value",
+          axisLabel: {
+            formatter: item => {
+              return item + "%"
+            },
+          },
         },
         yAxis: {
           type: "category",

+ 5 - 0
src/views/AdvertisingEye/components/trancheB.vue

@@ -198,6 +198,11 @@ export default {
         },
         xAxis: {
           type: "value",
+          axisLabel: {
+            formatter: item => {
+              return item + "%"
+            },
+          },
         },
         yAxis: {
           type: "category",