antvis / antvis/S2

🐛透视组合图 显示错乱

Open
#3,036 7 comments 0 reactions 1 assignee Assigned to @wjgogogo View on GitHub
🐛 bug 💤 inactive G
Dominant language
TypeScript
Stars
1.7k
Forks
220
PR merge metrics
No merged PRs in 30d

Description

### 🏷 Version

| Package | Version |
| -------------- | ------- |
| @antv/s2 | 2.1.1 |
| @antv/s2-react | - |
| @antv/s2-vue | - |

### Sheet Type

- [ ] PivotSheet
- [ ] TableSheet
- [ ] GridAnalysisSheet
- [ ] StrategySheet
- [ ] EditableSheet
- [x] PivotChartSheet

### 🖋 Description

在使用透视组合图的的时候会出现 柱状图显示错乱的情况,如图所示:
![image](https://github.com/user-attachments/assets/57cc854a-4cfa-4631-9319-021db5d8599c)
正确的结果应该是这样的, 如图所示:
![image](https://github.com/user-attachments/assets/30975e92-3a96-4efa-bc34-dc80fcf42469)

### ⌨️ Code Snapshots

### 🔗 Reproduce Link
[codesandbox](https://codesandbox.io/p/sandbox/relaxed-night-34fwvr?file=%2Findex.ts)

### 🤔 Steps to Reproduce

删除图中的红框选中的数据或者把 number 修改为 0、null、undefined 都可以复现。
![image](https://github.com/user-attachments/assets/782a3fbf-6b9e-4606-ad5d-9fe8023e7207)

### 😊 Expected Behavior

如图所示:
![image](https://github.com/user-attachments/assets/6238acc8-353d-43af-8e77-f948c52da8b1)

![image](https://github.com/user-attachments/assets/276f1a55-cf5c-4dc4-a780-080f82f2543a)

### 😅 Current Behavior

![image](https://github.com/user-attachments/assets/5ddd7480-b4ef-4daf-a3cd-81c940ef6083)

### 💻 System information

| Environment | Info |
| ------- | ------- |
| System | Mac OS 14.1.1 |
| Browser | chrome: 131.0.6778.109(正式版本) (arm64) |

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.