Hi all.<div><br></div><div>I can coding as blow to draw a polygonal line:</div><div><br></div><div><div>var ctx = canvas.getContext("2d");</div><div>ctx.beginPath();</div><div><br></div><div>ctx.moveTo(0,126);</div>
<div><br></div><div>{ data in loop }</div><div>    ctx.lineTo(x , {{data}});</div><div>{ endfor }</div><div><br></div><div>ctx.stroke();</div><div>ctx.closePath();</div></div><div><br></div><div>But if I want to set a moveto one time and multi times lineto with a loop, </div>
<div>how I should do with SVG ?</div>