F2
F2 copied to clipboard
饼图设置了选中样式,点击PieLabel中的文字时,对应的饼图块未展示选中样式?
- [ ] I have searched the 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
Steps to reproduce
1、在实例代码中添加饼图的选中样式 <Interval x="const" y="ratio" adjust="stack" color={{ field: 'memo', range: [ '#1890FF', '#13C2C2', '#2FC25B', '#FACC14', '#F04864', '#8543E0', '#3436C7', '#223273', ], }} selection={{ selectedStyle: (record) => { const { yMax } = record; return { r: yMax * 1.1, }; }, }} />
2、点击PieLable上的文案,查看对应块并未被选中
Environment | Info |
---|---|
f2 | 5.4.4 |
System | - |
Browser | - |