score:3

Accepted answer

for the label, add a text element to the center of the pie chart when you create it:

var centertext = vis.append("text")
      .attr("dy", ".35em")
      .style("text-anchor", "middle")

update that element on pie slice mouseover:

      centertext.text( d3.select(this).datum().data.label );

and mouseout:

      centertext.text( "" );

there are a couple of ways to add the other arc. i would probably change the stroke of the slice path on mouseover, but you could also just draw another inner arc on mouseover.


Related Query

More Query from same tag