update the d3 view