From cec7b6c9f866df20e8bdd49540dd6a5dfc9c0d74 Mon Sep 17 00:00:00 2001 From: wisonic Date: Wed, 31 Dec 2025 16:50:00 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=9B=BE=E8=A1=A8):=20=E5=A0=86?= =?UTF-8?q?=E5=8F=A0=E6=9F=B1=E6=9D=A1=E5=9B=BE=E6=A0=87=E7=AD=BE=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=98=BE=E7=A4=BA=E6=8C=87=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/js/panel/charts/bar/bar.ts | 6 ++++++ .../chart/components/js/panel/charts/bar/horizontal-bar.ts | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bar.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bar.ts index f79c379952..9ffdde256f 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bar.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bar.ts @@ -638,6 +638,12 @@ export class StackBar extends Bar { return setUpStackSeriesColor(chart, data) } + setupDefaultOptions(chart: ChartObj): ChartObj { + const chartTmp = super.setupDefaultOptions(chart) + chartTmp.customAttr.label.showStackQuota = true + return chartTmp + } + protected setupOptions(chart: Chart, options: ColumnOptions): ColumnOptions { return flow( this.configTheme, diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/horizontal-bar.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/horizontal-bar.ts index 90ff3bdbeb..616762af07 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/horizontal-bar.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/horizontal-bar.ts @@ -585,6 +585,12 @@ export class HorizontalStackBar extends HorizontalBar { return optionTmp } + setupDefaultOptions(chart: ChartObj): ChartObj { + const chartTmp = super.setupDefaultOptions(chart) + chartTmp.customAttr.label.showStackQuota = true + return chartTmp + } + protected setupOptions(chart: Chart, options: BarOptions): BarOptions { return flow( this.configTheme,