From 02ec9541d2d43ebef939b3ec34c3c242edbb6136 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 25 Jul 2022 09:49:46 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Achart-stat=20=E5=AD=97=E4=BD=93?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/chart/chart/chartStat.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/chart/chart/chartStat.vue b/nezha-fronted/src/components/chart/chart/chartStat.vue index 2ddf270bc..910ca87bf 100644 --- a/nezha-fronted/src/components/chart/chart/chartStat.vue +++ b/nezha-fronted/src/components/chart/chart/chartStat.vue @@ -309,7 +309,7 @@ export default { const elWidth = el.offsetWidth const elHeight = el.offsetHeight const dimension = Math.min(item.width, item.height * 1.3) - const fontScale = parseInt('80%', 10) / 100 + const fontScale = parseInt('70%', 10) / 100 let fontSize = Math.min(dimension / 5, 100) * fontScale let scale = item.width / elWidth if (scale * elHeight > item.height) {