antvis / antvis/G2Plot

🐛 [BUG] g2plot shape 回调参数问题

Open
#3,194 0 comments 0 reactions 0 assignees View on GitHub
Bug Encode
Dominant language
TypeScript
Stars
2.7k
Forks
591
PR merge metrics
No merged PRs in 30d

Description

shape 回调函数参数的 形状字段 变成了 颜色字段
复现:https://codesandbox.io/s/bold-tree-3dsi5s?file=/index.ts
![image](https://user-images.githubusercontent.com/26690191/164969001-c92b1145-1c67-4923-9a06-206b1283f5b0.png)

* **G2Plot Version**: v2.4.16
* **Platform**: g2plot 2.x

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction and inspect how G2Plot v2.4.16 passes parameters to the shape callback. Confirm the callback receives the shape field rather than the color field, then verify the corrected behavior against the reproduction.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.