adding d3 Factory

according to http://www.ng-newsletter.com/posts/d3-on-angular.html
controller provides stats to view, starting d3 directive for plot