antvis / antvis/F2

F2 v5.0.30 点击饼图 PieLabel 本身时不触发onClick 事件,只有点击引申出来的文本时才会触发?

Open
#1,914 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
637
PR merge metrics
No merged PRs in 30d

Description

- [ ] I have searched the [issues](https://github.com/antvis/f2/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[https://f2.antv.antgroup.com/zh/examples/pie/pie/#pie-with-label](https://f2.antv.antgroup.com/zh/examples/pie/pie/#pie-with-label)

### Steps to reproduce
直接使用官网demo即可重现,点击圆圈自身区域时是不会打印onClick函数中的data的

| Environment | Info |
|---|---|
| f2 | 5.0.30 |
| System | - |
| Browser | - |

Contributor guide

Open the contributing guide

Research direction

Start with the pie-with-label reproduction at https://f2.antv.antgroup.com/zh/examples/pie/pie/#pie-with-label and run the demo with F2 v5.0.30. Compare clicks on the pie area and its PieLabel, then trace the chart event handling from the demo entry point. Done means clicking the pie itself invokes onClick and prints its data, consistently with clicks on the extended label text.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.