Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task
LiuJing1014 opened this issue Mar 26, 2024 · 0 comments

Comments

@LiuJing1014
Copy link

  • 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 -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant