update d3 chart