Skip to content

Commit c1a155d

Browse files
authored
Merge pull request #4878 from VisActor/fix/indicatorTitleShowPivotChart
Fix/indicator title show pivot chart
2 parents 6bd13c5 + d166594 commit c1a155d

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "fix: rose pivotchart show indicator title problem\n\n",
5+
"type": "none",
6+
"packageName": "@visactor/vtable"
7+
}
8+
],
9+
"packageName": "@visactor/vtable",
10+
"email": "892739385@qq.com"
11+
}

packages/vtable/src/layout/pivot-header-layout.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1769,7 +1769,10 @@ export class PivotHeaderLayoutMap implements LayoutMapAPI {
17691769
//#endregion
17701770
if (
17711771
!this.indicatorsAsCol &&
1772-
(this.hideIndicatorName || (!this.hasLeftIndicatorAxis && this._table.isPivotChart())) &&
1772+
(this.hideIndicatorName ||
1773+
(!this.hasLeftIndicatorAxis &&
1774+
this._table.isPivotChart() &&
1775+
checkHasCartesianChart(this.indicatorsDefine))) &&
17731776
this.rowDimensionKeys[this.rowDimensionKeys.length - 1] === this.indicatorDimensionKey
17741777
) {
17751778
count = rowLevelCount - 1;

0 commit comments

Comments
 (0)