Andrew-Reid
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
https://d3js.org/d3.v4.min.js