A directive for nvd3 in AngularJS