aman sharma

aman sharma

  • 1.7k
  • 51
  • 13k

donut chart

Mar 9 2016 10:10 AM
i want to make a donut chart using D3 js and angular js .
 
i am getting  data in json format .. i have done the pie layout but i have to show the data labe to to the top right of donut ...the json respone is like this ..
"metrics": [
{
"label": "link_clicks",
"count": 383,
"percent": 56.9,
"color":"#C3EA97"
},
{
"label": "other_clicks",
"count": 373,
"percent": 75.9,
"color":"#E49DF2"
},
{
"label": "photo_views",
"count": 363,
"percent": 85.9,
"color":"#B1D5FF"
}
]
  i have to show percent and label to  the top right corner ...