This pie chart, based on Mike Bostock's example, rotates so that any clicked wedge well spin to the bottom. The text rotates in the opposite direction so that it remains upright.
Part of this answer on Stack Overflow
forked from Andrew-Reid's block: Pie Chart Rotation on Click
https://d3js.org/d3.v4.min.js