making graphs using d3js