antvis / antvis/F2

饼图设置了选中样式,点击PieLabel中的文字时,对应的饼图块未展示选中样式?

Open
#1,946 0 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
1、在实例代码中添加饼图的选中样式
{
const { yMax } = record;
return {
r: yMax * 1.1,
};
},
}}
/>

2、点击PieLable上的文案,查看对应块并未被选中
![企业微信截图_1711445053740](https://github.com/antvis/F2/assets/57434878/c064ca78-d0f9-430a-8956-0a41c4b7c822)
![企业微信截图_17114450788433](https://github.com/antvis/F2/assets/57434878/38506aca-588d-40e2-a8df-95cb3b4b312a)

| Environment | Info |
|---|---|
| f2 | 5.4.4 |
| System | - |
| Browser | - |

Contributor guide

Open the contributing guide

Research direction

Start from the pie-with-label reproduction linked in the issue and inspect how the Interval selection configuration and PieLabel handle clicks. Verify whether clicking label text reaches the corresponding pie block's selection behavior. Done means clicking a PieLabel selects the matching slice and applies the configured selectedStyle.

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.