🙏透视表退化为“明细表”
- Dominant language
- TypeScript
- Stars
- 1.7k
- Forks
- 220
- PR merge metrics
- No merged PRs in 30d
Description
### 🖋 Description
透视表是由行、列、数值构成。如果说只有行或只有列,这时候透视表可能就退化成“明细表”。
以官方图表示例为例

这里去掉行字段,图表直接没有数据了。
开发中遇到没有行的情况是这样的

数据展示有点怪,表头还多出了一个数值
期望的图表应该是这样的

不知能否支持这样的场景,或者有其他特殊的处理方式。
谢谢!
Contributor guide
Research direction
Start by reproducing the official chart example and the reported case where the pivot table has no row fields, using the screenshots as the expected behavior reference. Trace how the table handles configurations with only rows or only columns, then ensure the displayed headers and data match the requested detail-table presentation in both cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100