diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-pivot.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-pivot.ts index 5aeb7911da..0ce479a366 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-pivot.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-pivot.ts @@ -191,10 +191,12 @@ export class TablePivot extends S2ChartView { sortParams: sortParams } // options + const style = this.configStyle(chart) + style.hierarchyCollapse = true const s2Options: S2Options = { width: containerDom.offsetWidth, height: containerDom.offsetHeight, - style: this.configStyle(chart), + style, totals: tableTotal as Totals, conditions: this.configConditions(chart), tooltip: {