antvis / antvis/F2

饼图设置默认选中之后,再点击label选中,默认选中没办法清除

Open
#1,159 1 comment 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.vision/zh/examples/pie/basic#pie-click](https://f2.antv.vision/zh/examples/pie/basic#pie-click)

### Steps to reproduce
设置 chart.interaction('pie-select', {
defaultSelected: {
const: 'const',
type: '交通出行',
money: 51.39
}
});
之后
chart.clearInteraction()不能清除默认选中

| Environment | Info |
|---|---|
| f2 | 3.8.6 |
| System | - |
| Browser | - |

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue at the linked pie-click example using F2 3.8.6, with pie-select configured with the shown defaultSelected value. Start by tracing the pie-select interaction and chart.clearInteraction() behavior; done means clicking the label no longer leaves the default selection active after the interaction is cleared.

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
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.