Pie chart is rocking and refactored. Looks pretty decent now, but there is a bug somewhere.