我没有使用SVG的经验,并且在创建自定义形状时遇到问题。我想创建下面的形状。SVG自定义圆形状
切片和所有物行的份额应动态地增加。 所有切片都是一样的。例如:如果我们有4个切片,每个切片将具有25%的值,如果有10个切片,则我们将有10个切片并具有10%。
image http://i58.tinypic.com/aw7w3k.png
<!DOCTYPE html>
<html>
<body>
<svg width="800" height="800">
<circle cx="400" cy="400" r="300" stroke="black" stroke-width="2" fill="red" />
<circle cx="400" cy="400" r="80" stroke="black" stroke-width="2" fill="blue" />
<path d="M 400 400 H 480 320" stroke="black" stroke-width="2" fill="none" />Sorry, your browser does not support inline SVG.
</svg>
</body>
</html>
请帮助我。
这可能会有帮助:http://svg-edit.googlecode.com/svn-history/r1771/trunk/editor/svg- editor.html – CodeRomeos
@Paulie_D是的,当然,我的不好:) – michael24B
http://tutorials.jenkov.com/svg/index.html –