update d3 resources