An example of integrating AngularJS with D3js using a directive