Creating d3 components with Angular2 and TypeScript