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 e6148f13cd..8d40e240bb 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 @@ -412,7 +412,12 @@ export class StackBar extends Bar { this.baseOptions = { ...this.baseOptions, isStack: true, - isGroup: false + isGroup: false, + meta: { + category: { + type: 'cat' + } + } } this.axis = [...this.axis, 'extStack'] } @@ -668,7 +673,12 @@ export class PercentageStackBar extends GroupStackBar { isStack: true, isPercent: true, isGroup: false, - groupField: undefined + groupField: undefined, + meta: { + category: { + type: 'cat' + } + } } this.axis = [...BAR_AXIS_TYPE, 'extStack'] } 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 721d3d2180..eca3e8b277 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 @@ -403,7 +403,12 @@ export class HorizontalStackBar extends HorizontalBar { this.baseOptions = { ...this.baseOptions, isGroup: false, - isStack: true + isStack: true, + meta: { + category: { + type: 'cat' + } + } } this.axis = [...this.axis, 'extStack'] }