working d3 graph