0
我已將文字和(圖形)添加到了我的陽光中心,並且我想在放大時隱藏它。如何在縮放時「隱藏」d3可縮放朝陽中心的文字?
svg.append("image")
.attr("xlink:href", "scholarWorksDark.png")
.attr("x", -80)
.attr("y", -150)
.attr("width", "150")
.attr("height", "150");
//.on("click", click(d));
svg.append("text")
//.on("click",click)
.attr("x", -115)
.attr("y", 90)
.style("font-size",16)
//.style("font-weight","bold")
.html("Click to explore our <br/><br/>" + hierarchy.value + " ETDs");
正如你可以在我的plunk
看到當我點擊文本仍然可見旭日的部分,我只希望它表明,當它在「家」的狀態。