The D3 update pattern