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,