D3 Directive update