Fix data binding for d3 graph.