d3.js in Angular Directive