interaction 和 pieLabel 结合使用会出现问题
- 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.vision/zh/examples/pie/pie#pie-click](https://f2.antv.vision/zh/examples/pie/pie#pie-click)
### Steps to reproduce
chart.interaction('pie-select', {
defaultSelected: {
const: 'const',
type: '交通出行',
money: 51.39
}
})
官网实例加上如上代码就可复现。
默认选中下,点击label区域并不能清楚掉上一个选中态,点击环形区域可以。
| Environment | Info |
|---|---|
| f2 | 3.8.10 |
| System | - |
| Browser | - |
Contributor guide
Research direction
Start with the linked pie-click example and the pie-select interaction configuration using defaultSelected. Trace how clicks in the pie ring and pieLabel area are handled, then verify that clicking the label clears the previous selection just as clicking the ring does. Reproduce against F2 3.8.10 before confirming the behavior is fixed.
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