From e70a12011d6ef3402304d7e7070cfcea04720d5a Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Tue, 9 Sep 2025 16:01:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=BA=BF=E9=9D=A2=E5=9B=BE=E6=A8=AA=E8=BD=B4=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=97=8B=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/js/panel/charts/g2/line/area.ts | 10 +--------- .../chart/components/js/panel/charts/g2/line/line.ts | 10 +--------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/g2/line/area.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/g2/line/area.ts index fc47ec3eaf..10009e7592 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/g2/line/area.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/g2/line/area.ts @@ -344,15 +344,7 @@ export class Area extends G2ChartView { gridStrokeOpacity: 1, gridLineWidth: xAxis.splitLine.lineStyle.width, gridLineDash, - transform: xAxis.axisLabel.rotate - ? [ - { - type: 'rotate', - optionalAngles: [xAxis.axisLabel.rotate], - recoverWhenFailed: false - } - ] - : [] + labelTransform: `rotate(${xAxis.axisLabel.rotate || 0})` } } } diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/g2/line/line.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/g2/line/line.ts index 42baf6d944..e4bd2da212 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/g2/line/line.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/g2/line/line.ts @@ -336,15 +336,7 @@ export class Line extends G2ChartView { gridStrokeOpacity: 1, gridLineWidth: xAxis.splitLine.lineStyle.width, gridLineDash, - transform: xAxis.axisLabel.rotate - ? [ - { - type: 'rotate', - optionalAngles: [xAxis.axisLabel.rotate], - recoverWhenFailed: false - } - ] - : [] + labelTransform: `rotate(${xAxis.axisLabel.rotate || 0})` } } }