update css for d3 chart and update d3 chart