pare down d3 charts dependency for d3-path which takes code that draws to a canvas and additionally renders to SVG
"Now code you write once can be used with both Canvas (for performance) and SVG (for convenience). For a practical example, see d3-shape."
d3-path