Open LiuJing1014 opened 5 months ago
https://f2.antv.antgroup.com/zh/examples/pie/pie/#pie-with-label
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上的文案,查看对应块并未被选中
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上的文案,查看对应块并未被选中