D3 transition example with the data() method