D3.js with Angular directives