sort of working d3 graph