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.js 实现这一点:
我从旭日形图开始,但是如何处理圆形的图片?如何旋转它们?等(假设每个奶酪都有它的png图片)
要添加图像,您可以使用SVGimage标签。以这种方式添加的元素可以以通常的方式平移和旋转。您将需要的代码与带有旋转标签的饼图基本相同,您应该能够找到大量示例。
image
这是一个演示该技术的快速而肮脏的修改饼图示例。