I have been trying to convert this example in d3 v3 to a v4 version but still having trouble. http://bl.ocks.org/eesur/be2abfb3155a38be4de4
Here is a JSFiddle of wh