how to create labels for data in donut chart using

2019-02-08 15:08发布

I have a donut chart which updates data on click. I want to add labels to the same data. I am currently using the d3.js javascript library. Here is my code on jsfiddle

What I don't understand it how to add labels to segments of the donut chart?

2条回答
何必那么认真
2楼-- · 2019-02-08 15:53

Please take a look at: http://nvd3.org/examples/pie.html or http://bl.ocks.org/Guerino1/2295263. Check the code and you should be able to answer this question fairly easy. Have fun!

查看更多
登录 后发表回答