Add transition for D3 barchart