This commit is contained in:
Azgaar 2019-09-19 22:20:16 +03:00
parent 5eb24252e1
commit be4caf0c24
5 changed files with 74 additions and 9 deletions

View file

@ -249,6 +249,7 @@ function addLabelOnClick() {
const x = width / -2; // x offset;
example.remove();
group.classed("hidden", false);
group.append("text").attr("id", id)
.append("textPath").attr("xlink:href", "#textPath_"+id).attr("startOffset", "50%").attr("font-size", "100%")
.append("tspan").attr("x", x).text(name);