From ba511be538c9f7a5f736a6083c74c16f92d4f7da Mon Sep 17 00:00:00 2001 From: wisonic Date: Thu, 13 Nov 2025 17:43:06 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=9B=BE=E8=A1=A8):=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E7=BB=84=E5=90=88=E5=9B=BE=E4=B8=AD=E6=8A=98=E7=BA=BF?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E7=AD=BE=E6=98=BE=E7=A4=BA=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/js/panel/charts/others/chart-mix.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/others/chart-mix.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/others/chart-mix.ts index 80f054a1fb..317c28bd67 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/others/chart-mix.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/others/chart-mix.ts @@ -208,6 +208,8 @@ export class ColumnLineMix extends G2PlotChartView { pre[next.id] = next return pre }, {}) + const textBaseline = + this.getLeftType() === 'line' ? 'bottom' : axisType === 'yAxis' ? 'top' : 'bottom' tempLabel.style.fill = DEFAULT_LABEL.color const label = { fields: [], @@ -232,7 +234,7 @@ export class ColumnLineMix extends G2PlotChartView { y: 0, text: value, textAlign: 'start', - textBaseline: 'top', + textBaseline, fontSize: labelCfg.fontSize, fontFamily: chart.fontFamily, fill: labelCfg.color @@ -650,7 +652,7 @@ export class ColumnLineMix extends G2PlotChartView { this.configYAxis, this.configAnalyse, this.configEmptyDataStrategy - )(chart, options) + )(chart, options, {}, this) } constructor(name = 'chart-mix') {