converted the d3 v3 to local