Added complete d3 code and final image.