antvis / antvis/S2

🙏透视表退化为“明细表”

Open
#1,439 6 comments 0 reactions 0 assignees View on GitHub
✅ accepted 💤 inactive 🙏feature request
Dominant language
TypeScript
Stars
1.7k
Forks
220
PR merge metrics
No merged PRs in 30d

Description

### 🖋 Description
透视表是由行、列、数值构成。如果说只有行或只有列,这时候透视表可能就退化成“明细表”。

以官方图表示例为例
![image](https://user-images.githubusercontent.com/44164267/173601568-7e58fefb-146e-4b95-a303-31c3d04e68ea.png)
这里去掉行字段,图表直接没有数据了。

开发中遇到没有行的情况是这样的
![image](https://user-images.githubusercontent.com/44164267/173606511-3f83c3aa-469b-421e-8659-3c0770581a47.png)
数据展示有点怪,表头还多出了一个数值

期望的图表应该是这样的
![image](https://user-images.githubusercontent.com/44164267/173602097-f97eb53b-df2a-44d1-8092-5dc844035602.png)

不知能否支持这样的场景,或者有其他特殊的处理方式。

谢谢!

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.