🤔 透视表树模式自定义列总计展示异常
- Dominant language
- TypeScript
- Stars
- 1.7k
- Forks
- 220
- PR merge metrics
- No merged PRs in 30d
Description
### 🏷 Version
| Package | Version |
| -------------- | ------- |
| @antv/s2 | 1.55.6 |
| @antv/s2-react | 1.47.0 |
| @antv/s2-vue | |
### Sheet Type
- [x] PivotSheet
- [ ] TableSheet
- [ ] GridAnalysisSheet
- [ ] StrategySheet
- [ ] EditableSheet
### 🖋 Description
1. 目前透视表列总计采用自定义函数的形式,即链接中的calcFunc函数,树模式下总计计算结果异常,并且打印calcFunc函数中的spreadsheet字段值为空

### 🔗 Reproduce Link
https://codesandbox.io/p/sandbox/thirsty-surf-r6m5jr?file=%2Findex.ts%3A16%2C39
透视表配置项如链接所示(链接的渲染和项目本地实际渲染结果不同,所以仅用来参考配置,实际效果我会额外截图)
### 😊 Expected Behavior
树模式下列总计可以正常展示
### 😅 Current Behavior
树模式下列总计展示异常
Contributor guide
Research direction
Start with the linked CodeSandbox entry point at index.ts:16 and review the PivotSheet configuration, especially the custom calcFunc for column totals. Reproduce the tree-mode case and compare the calcFunc spreadsheet value and rendered totals with the expected behavior. Done means custom column totals display correctly in tree mode.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100