F2 icon indicating copy to clipboard operation
F2 copied to clipboard

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

Open LiuJing1014 opened this issue 3 months ago • 0 comments

  • [ ] 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上的文案,查看对应块并未被选中 企业微信截图_1711445053740 企业微信截图_17114450788433

Environment Info
f2 5.4.4
System -
Browser -

LiuJing1014 avatar Mar 26 '24 09:03 LiuJing1014