Edit in JSFiddle

var draw = SVG().addTo('body').size(300, 130)

var line = draw.line(0, 100, 100, 0).move(20, 20)
line.stroke({ color: '#f06', width: 10, linecap: 'round' })