Use d3 to animate example 2