antvis / antvis/G2Plot

🐛 [BUG] g2plot 2.x 箱型图组件 异常值分布及值标签显示问题

Open
#2,954 1 comment 0 reactions 0 assignees View on GitHub
Bug
Dominant language
TypeScript
Stars
2.7k
Forks
591
PR merge metrics
No merged PRs in 30d

Description

### 🐛 Bug description [Please make everyone to understand it]
1. 异常值问题,当只有一条或两条数据中有异常值 outliers配置时,异常值分布位置异常
2. 值标签不管现实谁,都在异常值上方
3. 复现地址:https://codesandbox.io/s/serene-thompson-r09m4?file=/index.ts:142-150
![image](https://user-images.githubusercontent.com/26690191/139779863-8e19d88b-c3bf-4a37-8c4a-4535ec0d210e.png)

![image](https://user-images.githubusercontent.com/26690191/139779887-654c0610-4daf-455c-bec5-f00a265f64a1.png)

* **G2Plot Version**: 2.3.39
* **Platform**: g2plot 2.x

Contributor guide

Open the contributing guide

Research direction

Start with the reproduction in the linked CodeSandbox, especially index.ts around lines 142-150, and verify the outlier positions and value-label placement for one- and two-point datasets. Compare the observed box plot against the expected distribution and label location; done means both behaviors are corrected for the reported configuration and the reproduction no longer shows the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.