SVG Marker does not work

谁说胖子不能爱 提交于 2019-12-05 15:54:49
Paul LeBeau

There are three reason causing marker to not work:

  1. You haven't specified a stroke colour for your path, so it won't show up (and neither will the markers).

  2. You have specified marker-mid markers when the path doesn't have any midpoints. It's just a single line segment. Try d="M0,0L100,100,200,200" to add a mid point.

  3. Finally your markerWidth and markerHeight are too small (3x3) for the circle which is centred at (6,6) and radius 5. Try markerWidth="12" markerHeight="12".

http://jsfiddle.net/fP5EY/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!