d3 pie chart implemented, with animation