d3 pie chart working