Adding the stuff for d3 graph