From d7156431504445e7ccb5597e111818cd1d99a9ce Mon Sep 17 00:00:00 2001 From: xiangxy Date: Thu, 2 Nov 2023 16:00:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/proj/ProdCount.vue | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/pages/proj/ProdCount.vue b/src/pages/proj/ProdCount.vue index b892679..1cfd42a 100644 --- a/src/pages/proj/ProdCount.vue +++ b/src/pages/proj/ProdCount.vue @@ -410,6 +410,14 @@ export default { name: '合格数', type: 'bar', barWidth: '12', + label: { + show: true, + position: 'top', // 位置 + color: '#A7D6F4', + fontSize: 14, + distance: 15, // 距离 + formatter: '{c}' // 这里是数据展示的时候显示的数据 + }, itemStyle: { normal: { color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [ @@ -432,6 +440,14 @@ export default { name: '不合格数', type: 'bar', barWidth: '12', + label: { + show: true, + position: 'top', // 位置 + color: '#A7D6F4', + fontSize: 14, + distance: 15, // 距离 + formatter: '{c}' // 这里是数据展示的时候显示的数据 + }, itemStyle: { normal: { color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [ @@ -454,6 +470,15 @@ export default { name: '剩余数', type: 'bar', barWidth: '12', + label: { + show: true, + position: 'top', // 位置 + color: '#A7D6F4', + fontSize: 14, + distance: 15, // 距离 + formatter: '{c}' // 这里是数据展示的时候显示的数据 + }, + barGap: '200%', itemStyle: { normal: { color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [