Skip to content

robinboehm/angular-d3-directives

Repository files navigation

angular-d3

Blogpost about this project: http://angularjs.de/artikel/angularjs-d3-wordcloud

Create directives to enable even more easy usage of d3 by Mike Bostock!

##D3 AngularJS Module

D3 component to provide d3 as module for the injector. Registerd as d3.

Include component as every other component via script tag into your webapp.

<script src="components/angular/angular.js"></script>
<script src="components/d3/angular-d3.js"></script>

Add d3 module to the requires Array.

angular.module('exampleApp', ['d3']);

Now you can inject the d3 module e.g. in a directive definition and enjoy the full power of d3 in a isolated scope without usage of the d3 in a global var.

angular.module('d3')
  .directive('example', function (d3){
  // use d3 
  }
);

##Directives

With d3 directives you are able to create wonderful html extensions that enable people with basic javascript experience to create d3 visualisations.

I will publish here directives that come with my projects iam working on. Feel free to contribute extensions, fixes or own directives.

Development

To install local dependencies you need to run the install task of npm / bower.

npm install && bower install

To build the module you need to run the grunt with default task

grunt

Todo

Bitdeli Badge

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published