SVG-沿圆形路径绘制形状

时间:2019-06-19 14:34:51

标签: javascript html d3.js svg

如何在SVG中绘制Circle的笔触形状?

类似这样的东西:

enter image description here

1 个答案:

答案 0 :(得分:2)

尝试一下

    <svg height="100" width="100">
      <circle cx="50" cy="50" r="40" stroke="blue" stroke-width="5" stroke-dasharray="3" fill="transparent" />
      Sorry, your browser does not support inline SVG.  
    </svg> 

调整stroke-widthstroke-dasharray

相关问题