update D3 components