antvis / G2Plot

:dango: An interactive and responsive charting library based on G2.
https://g2plot.antv.antgroup.com
MIT License
2.56k stars 607 forks source link

🤔 [QUESTION]环形图,使用spider类型的label,类别如果过大会显示不全,该如何做呢? #3646

Open dijia478 opened 1 year ago

dijia478 commented 1 year ago

🐛 Question description [Please make everyone to understand it]

在使用环形图时,label设置type: 'spider',当其中一个类别如果过大,label标签显示不全。如图所示:

image

💻 Link to minimal reproduction

https://codesandbox.io/s/hopeful-jepsen-998wn8

🏞 Expected result

希望能自动计算边缘距离,保证label显示正常

🚑 Any additional [like screenshots]

feijihe commented 7 months ago

image radius不要设置为1就行了,留些位置给label