Remove extraneous "dx" attribute.
Thanks, @mbostock!
This commit is contained in:
Родитель
7155ffa9e3
Коммит
e5ae048b61
|
@ -32,7 +32,6 @@ d3.json("../data/flare.json", function(json) {
|
|||
.attr("r", 4.5);
|
||||
|
||||
node.append("text")
|
||||
.attr("dx", function(d) { return d.x < 180 ? 8 : -8; })
|
||||
.attr("dy", ".31em")
|
||||
.attr("text-anchor", function(d) { return d.x < 180 ? "start" : "end"; })
|
||||
.attr("transform", function(d) { return d.x < 180 ? "translate(8)" : "rotate(180)translate(-8)"; })
|
||||
|
|
Загрузка…
Ссылка в новой задаче