O'Reilly logo

Mastering AngularJS Directives by Josh Kurz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with D3

There are many external libraries that are meant for graphing and displaying large amounts of data in a nice consolidated, organized view. Some examples of libraries are flot.js, datatables.js, heatmap.js, and many more. We are going to describe how to work with one of the most popular visualization libraries.

D3 is very popular and has many different features. AngularJS and D3 work wonderfully together if used correctly. D3 has wonderful view-level techniques built inside that work perfectly with the data-binding abilities of AngularJS.

AngularJS watches the model for changes and calls functions depending on whether the data has changed. The directives written in this section will focus on calling the D3 function to perform most ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required