From 753c381b8052a930fff535ce663ac6a7fa8ad902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=9D=B0?= Date: Sun, 17 Aug 2025 21:01:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=83=85=E7=BB=AA=E6=8E=A2?= =?UTF-8?q?=E5=BA=95=E9=9B=B7=E8=BE=BE=E7=AC=AC=E4=B8=80=E4=B8=AA=E7=BD=91?= =?UTF-8?q?=E6=A0=BCy=E8=BD=B4=E6=95=B0=E5=80=BC=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E5=A4=9A=E4=B8=AA=E7=9B=B8=E5=90=8C=E5=80=BC=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/emotionalBottomRadar.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/components/emotionalBottomRadar.vue b/src/views/components/emotionalBottomRadar.vue index 27c7521..55b0900 100644 --- a/src/views/components/emotionalBottomRadar.vue +++ b/src/views/components/emotionalBottomRadar.vue @@ -402,6 +402,7 @@ function initEmotionalBottomRadar(KlineData, barAndLineData) { splitNumber: 4, min: yAxisMin, // 设置y轴最小值为数据最小值向下取整 max: yAxisMax, // 设置y轴最大值为数据最大值向上取整 + interval: (yAxisMax - yAxisMin) / 4, // 设置固定间隔,避免重复值 axisLine: { lineStyle: { color: 'white' // y轴坐标轴颜色 @@ -414,7 +415,8 @@ function initEmotionalBottomRadar(KlineData, barAndLineData) { width: 50, // 宽度限制 color: 'white', formatter: function (value, index) { - return Math.round(value) + // 显示一位小数 + return value.toFixed(1); } }, splitLine: {