I'm new here, so please be soft with me. I try to put text in a circle:
var center = svg.append("circle")
.attr("r", radius / 3)
.on("click", zoomOut);
center.append("text")
.attr("dy", ".3em")
.style("text-anchor", "middle")
.text("My text");
I know a geometric shape can't containt directly a text, so I create a with circle.append("text"). However, when I see the result, there is no text in my circle, but in the code my text is here : http://www.noelshack.com/2014-24-1402322012-sans-titre.png
Someone can help me ? Thanks.