d3.js primitives in angular