Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛树状透视表仅展示最细层级的row数值 #1900

Closed
1 of 4 tasks
meyergin opened this issue Nov 11, 2022 · 1 comment
Closed
1 of 4 tasks

🐛树状透视表仅展示最细层级的row数值 #1900

meyergin opened this issue Nov 11, 2022 · 1 comment
Assignees
Labels
💤 inactive 不活跃的 Issue 或 PR, 30天没有回复

Comments

@meyergin
Copy link

🏷 Version

Package Version
@antv/s2 1.33.1
@antv/s2-react
@antv/s2-vue

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • StrategySheet

🖋 Description

从1.24.0 升级到 1.33.1后,树状透视表仅展示最细层级的row数值
示例:

data:[
{'l1':'a', 'l2':'a2', 'value':0.1},
{'l1':'b', 'l2':'b2', 'value':0.2},
{'l1':'b', 'value':0.2},
]


config:

rows: ['l1','l2']
values:['value']

第三行l1 对应的单元格无法显示数值
如果rows 传入l1, l2, l3, 则只能显示这三个key都存在的row,如果只有'l1'或者 ('l1' & 'l2') 的key,row单元格的数值无法显示

问题图:
image
之前的正常结果:
image

⌨️ Code Snapshots

🔗 Reproduce Link

🤔 Steps to Reproduce

😊 Expected Behavior

😅 Current Behavior

💻 System information

@lcx-seima lcx-seima self-assigned this Dec 5, 2022
@github-actions github-actions bot added the 💤 inactive 不活跃的 Issue 或 PR, 30天没有回复 label Jan 16, 2023
@lcx-seima
Copy link
Contributor

需要手动打开行小计

totals: {
        row: {
          showGrandTotals: true,
+         showSubTotals: true,

参考 https://s2.antv.antgroup.com/examples/analysis/totals/#tree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💤 inactive 不活跃的 Issue 或 PR, 30天没有回复
Projects
None yet
Development

No branches or pull requests

2 participants