65062304 pie chart bug fixes

@nthomson - Here's a quick fix for pie charts, so that they are available for version 1. I propose we merge this, keep the branch open, and revisit with a cleaner fix later.

https://www.pivotaltracker.com/story/show/65062304