Bläddra i källkod

fix: b2 柱状图优化

wjc 1 vecka sedan
förälder
incheckning
60b157779b

+ 3 - 6
src/views/hui-jia/components/implementary/now-year.vue

@@ -128,7 +128,7 @@
               name: "进行中",
               type: "bar",
               stack: "total",
-              barMinHeight: 10,
+              // barMinHeight: 10,
               itemStyle: {
                 color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [
                   { offset: 0, color: "#1620D4" },
@@ -140,7 +140,6 @@
                 show: true,
                 color: "#fff",
               },
-              barWidth: 30,
               barGap: "0%",
               barCategoryGap: "20%",
               data: this.data.service_ing,
@@ -149,7 +148,7 @@
               name: "上月完成",
               type: "bar",
               stack: "total",
-              barMinHeight: 10,
+              // barMinHeight: 10,
               itemStyle: {
                 color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [
                   { offset: 0, color: "#192FC9" },
@@ -161,7 +160,6 @@
                 show: true,
                 color: "#fff",
               },
-              barWidth: 30,
               barGap: "0%",
               data: this.data.service_last_month,
             },
@@ -169,7 +167,7 @@
               name: "今年累计",
               type: "bar",
               stack: "total",
-              barMinHeight: 10,
+              // barMinHeight: 10,
               label: {
                 show: true,
                 color: "#fff",
@@ -181,7 +179,6 @@
                 ]),
                 borderRadius: [0, 20, 20, 0],
               },
-              barWidth: 30,
               barGap: "0%",
               data: this.data.year_summary,
             },

+ 2 - 4
src/views/hui-jia/components/market.vue

@@ -145,9 +145,8 @@
             {
               name: "上月",
               type: "bar",
-              barMinHeight: 20,
+              // barMinHeight: 20,
               data: this.lastMonthData,
-              barWidth: 16,
               itemStyle: {
                 // 左侧渐变色:从#F66757到#FCE2B4
                 color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [
@@ -234,9 +233,8 @@
             {
               name: "本月",
               type: "bar",
-              barMinHeight: 2,
+              // barMinHeight: 20,
               data: this.thisMonthData,
-              barWidth: 16,
               itemStyle: {
                 // 右侧渐变色:从#1620D4到#3AB3E3
                 color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [