diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/g2plot/bar/horizontal-bar.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/g2plot/bar/horizontal-bar.ts index 4496b753f1..bd565dc74f 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/g2plot/bar/horizontal-bar.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/g2plot/bar/horizontal-bar.ts @@ -325,7 +325,7 @@ export class HorizontalStackBar extends HorizontalBar { const label = { ...baseOptions.label, formatter: function (data: Datum) { - const value = valueFormatter(data.value, labelAttr.formatter) + const value = valueFormatter(data.value, labelAttr.labelFormatter) const group = new Group({}) group.addShape({ type: 'text',