From 19f0b87f3e2314b48c3b84824f1ea794a8b6e714 Mon Sep 17 00:00:00 2001 From: wisonic Date: Mon, 29 Jul 2024 16:14:58 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E5=BA=8F=E5=8F=B7=E5=88=97=E6=8F=90=E7=A4=BA=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/js/panel/types/impl/s2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/types/impl/s2.ts b/core/core-frontend/src/views/chart/components/js/panel/types/impl/s2.ts index 05cedb33a6..00fc52bc77 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/types/impl/s2.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/types/impl/s2.ts @@ -70,7 +70,7 @@ export abstract class S2ChartView

extends AntVAbstractCha switch (cell.cellType) { case 'dataCell': if (meta.valueField === SERIES_NUMBER_FIELD) { - content = meta.fieldValue + content = meta.fieldValue.toString() break } field = find(metaConfig, item => item.field === meta.valueField) From 7956463194dc822fa54535907b8e497433e5f21f Mon Sep 17 00:00:00 2001 From: wisonic Date: Mon, 29 Jul 2024 16:17:07 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E6=B1=87?= =?UTF-8?q?=E6=80=BB=E8=A1=A8=E5=B8=83=E5=B0=94=E7=B1=BB=E5=9E=8B=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E6=B1=87=E6=80=BB=E8=AE=A1=E7=AE=97=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/js/panel/charts/table/table-normal.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-normal.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-normal.ts index 63013f2c73..772e414548 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-normal.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-normal.ts @@ -184,7 +184,8 @@ export class TableNormal extends S2ChartView { const summaryObj = newData.reduce( (p, n) => { yAxis.forEach(axis => { - p[axis.dataeaseName] = (n[axis.dataeaseName] || 0) + (p[axis.dataeaseName] || 0) + p[axis.dataeaseName] = + (parseFloat(n[axis.dataeaseName]) || 0) + (parseFloat(p[axis.dataeaseName]) || 0) }) return p },