Generate SVG paths for a line, d3-style