This is a small code example that shows what d3.layout.pie(). It adds properties including "startAngle", "endAngle" for the slices of a pie chart. This is example 24 from the screencast Splitting Charts.
MIT License
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js