Code Monkey home page Code Monkey logo

angular-d3-directives's Introduction

angular-d3

Blogpost about this project: http://spiiice.net/using-angularjs-and-d3-to-create-a-wordcloud-directive

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

angular-d3-directives's People

Contributors

robinboehm avatar

Watchers

Bobby Gifford avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.