简体   繁体   English

如何在D3.js中修复饼图上的标签对齐方式?

[英]How to fix the label alignment on pie chart in D3.js?

Here is plunker - http://plnkr.co/edit/VYH5QbO99ZbMkvc2D4Fe?p=preview 这里是plunker - http://plnkr.co/edit/VYH5QbO99ZbMkvc2D4Fe?p=preview

As I add more and more categories, these labels overlap and I can't see anything 随着我添加越来越多的类别,这些标签重叠,我什么也看不到

Is there a better way to align labels? 有没有更好的方法来对齐标签?

Thanks 谢谢

I rather moved to using NVD3 and created pie charts 我宁愿使用NVD3并创建饼图

The demo and code is availale http://plnkr.co/edit/qJnZzBS4ZOUtD2q9FV11?p=preview 该演示和代码可用http://plnkr.co/edit/qJnZzBS4ZOUtD2q9FV11?p=preview

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM