I'm trying to make a donut chart that looks like one below
I'll be using angularJS, SVG and D3.js
I've no clue how to get those rounded ends, Please help. Thanks.
I'm trying to make a donut chart that looks like one below
I'll be using angularJS, SVG and D3.js
I've no clue how to get those rounded ends, Please help. Thanks.
Simple answer: you use masks.
We use a mask to draw the inner portion of the bezel. And a mask to cut the hole in the middle.
The hole mask isn't really necessary. You could form the donut with thick lines. But it seemed easier to me to draw circular sectors, then make the hole.
Here it is in SVG form. I'll leave the conversion to D3 to you.