Working ugly d3 graph