Use d3 line instead of custom polyline because it's much sexier.