AngularJS - Directive

This app uses a custom directive to generate two bar charts, creating a D3 service and injecting it into the parent controller, which in turn injects it into the directive's link function. Data ranges are passed from the parent controller as arguments to the directive.


GitHub Repo