I am using D3 v4 and I am trying to use an example to create a new chart
The modifications I have made to the original chart are: