TomNeyland / angular-dc

AngularJS directives for dc.js
http://tomneyland.github.io/angular-dc/
MIT License
112 stars 58 forks source link

How do you use D3 dependency injection in angular-dc #64

Open idanb11 opened 7 years ago

idanb11 commented 7 years ago

Hi @TomNeyland ,

Using d3 with AngularJS dependency injection is highly recommend -

d3Service.d3().then(function(d3) {
  // d3 is the raw d3 object
});

So I wonder how do I make it work with a d3Service instead of directly with the d3 instance.

Thanks.