Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 d3 中向旭日形图添加背景圆圈?我正在使用标准的可缩放旭日形图示例:
我只想要一个指定颜色的完整圆圈,以突出显示特定显示器的“锯齿状”。
您需要做的就是在创建 SVG 后添加一个圆圈作为第一件事:
svg.append("circle").attr("r", radius).style("fill", "pink");
完整的例子在这里。