From a9426ca48f47007a4e33c8a17201b691b5a485f4 Mon Sep 17 00:00:00 2001 From: snowy Date: Fri, 5 Apr 2024 09:44:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=B3=BB=E7=BB=9F=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liteyuki/resources/templates/js/stats.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/liteyuki/resources/templates/js/stats.js b/liteyuki/resources/templates/js/stats.js index d8e9f0e..08bc8c2 100644 --- a/liteyuki/resources/templates/js/stats.js +++ b/liteyuki/resources/templates/js/stats.js @@ -181,6 +181,10 @@ } function getBarOption(title, percent) { + let fillet = 0 + if (percent < 15){ + fillet = 50 + } // data为百分比,最大值为100 return { background: '#d0e9ff', @@ -234,7 +238,7 @@ itemStyle: { normal: { color: '#d0e9ff', - barBorderRadius: [0, 50, 50, 0] + barBorderRadius: [fillet, 50, 50, fillet] } }, }