From 2fa39bdf2ee05eb1bbd9f082c9fab14afcb1c68a Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Tue, 21 Oct 2025 14:07:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=83=AD=E5=8A=9B=E5=9B=BE=E5=AD=97=E6=AE=B5=E4=B8=BA=E6=8C=87?= =?UTF-8?q?=E6=A0=87=E6=97=B6=E6=B0=B4=E5=B9=B3=E5=9B=BE=E4=BE=8B=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E5=B1=95=E7=A4=BA=E4=B8=8D=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/js/panel/charts/g2/table/t-heatmap.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/g2/table/t-heatmap.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/g2/table/t-heatmap.ts index 8e231d84fd..b46956df9c 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/g2/table/t-heatmap.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/g2/table/t-heatmap.ts @@ -259,7 +259,7 @@ export class TableG2Chart extends G2ChartView { scale: { color: { type: 'linear', - interpolate: () => { + interpolate() { return c => colors[Math.floor(c * (colors.length - 1))] } } @@ -267,7 +267,8 @@ export class TableG2Chart extends G2ChartView { legend: { color: { color: colors, - label: false + label: false, + step: 0.00000001 } } }