Animated line properly with D3.