Refactored fvc pie chart into javascript function

See "Towards Reusable Charts" http://bost.ocks.org/mike/chart for the
general approach taken.