This is an example of how to split an SVG path into an arbitrary number of pieces.
It is the technique used for The winding path to 270 electoral votes
forked from bycoffe's block: Split an SVG path into pieces
Modified http://d3js.org/d3.v4.min.js to a secure url
https://d3js.org/d3.v4.min.js