update c3 and d3