From 833c4864115de964c9b53ee84ba2cbd4c77ac876 Mon Sep 17 00:00:00 2001 From: dhy1725534722 <1725534722@qq.com> Date: Mon, 9 Oct 2023 10:40:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=A0=B7=E5=BC=8F=E6=8E=92?= =?UTF-8?q?=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/yingji/echarts/finishRate.vue | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/views/yingji/echarts/finishRate.vue b/src/views/yingji/echarts/finishRate.vue index 0606cdf..7b1fd3b 100644 --- a/src/views/yingji/echarts/finishRate.vue +++ b/src/views/yingji/echarts/finishRate.vue @@ -87,11 +87,11 @@ export default { trigger: "item", }, legend: { - width: "40%", + width: "45%", top: "25%", - right: "10%", + right: "8%", orient: "horizontal", - itemGap: 27, + itemGap:30, itemWidth: 10, itemHeight: 10, icon: "circle", @@ -99,20 +99,21 @@ export default { rich: { a: { color: "#525966", - width: 40, - padding: [0, 10, 0, 5], + width: 60, + padding: [0, 0, 0, 5], }, b: { color: "#495B7D", fontWeight: "bold", - padding: [0, 0, 0, 10], + // width: 60, + // padding: [0, 0, 0, 10], }, }, }, formatter: function (name) { const item = option.legend.data.find((item) => item.name === name); // return `{a|${name}}{b|${( item.value / arrA * 100)}%}`; - return `{a|${name}}{b|${item.pt * 100}%}`; + return `{a|${name}}{b|${(item.pt * 100).toFixed(2)}%}`; }, //将waiyuan的数据拿过来,就会只显示该外圆的数据 // data: [