score:0

the main problem with d3.js and angular together is the way they handle data. it is possible to use the two together by using a directive in angular, as seen in this article:

http://www.ng-newsletter.com/posts/d3-on-angular.html.

angular.module('d3', [])
 .factory('d3service', [function(){
  var d3;
  // insert d3 code here
 return d3;
}];

score:1

i have used d3.js and angularjs together. wrapping up d3.js stuff in a custom directive worked out pretty well for me. it did create some confusion. at times, things do not work out as they are supposed to and you are left wondering why. i found this site particularly helpful:

https://www.dashingd3js.com/d3-resources/d3-and-angular

hope this helps you in some way!


Related Query