add d3 animation