From 80f9453731d881593047ebddebcf3134a7e5eacb Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Tue, 10 Mar 2026 09:57:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E5=9B=BE=E4=BE=8B=E4=B8=AA=E6=95=B0=E7=9A=84?= =?UTF-8?q?=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/js/panel/charts/map/map.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/map/map.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/map/map.ts index 3f7e12d7f3..5bdf4674f8 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/map/map.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/map/map.ts @@ -399,7 +399,7 @@ export class Map extends L7PlotChartView { } else { // 数据较多,根据值范围平均分配,最多 9 个 // 计算每个区间的跨度 - const idealIntervals = Math.min(9, Math.ceil(Math.sqrt(dataCount))) + const idealIntervals = Math.max(9, Math.ceil(Math.sqrt(dataCount))) legendNumber = idealIntervals } // 确保图例数量在 1-9 之间