work on d3 graph