This example shows how to make an arc with rounded tips, the mouth, using d3.cornerRadius().
d3.cornerRadius()
The original work was done in this face by Xinting Yao