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.
如何在同一个图表中添加 trow 饼图?如果我添加两个图,那么饼图都在中心。我需要一个在左侧,一个在右侧。
我需要将它们放在一个图表中,因为我想创建它的 SVG 图像。
我也在寻找这个,到目前为止还没有找到解决方案。
但是我们可以通过在渲染后用javascript修改svg的'g'元素来定位饼图。
var a=document.getElementsByTagName('svg')[0]; var b=document.getElementsByTagName('g')[1]; b.setAttribute('transform','translate(-598.25037,-71.249953)'); //put your own
希望这有帮助。