# angular-nvd3 **Repository Path**: mirrors_andyperlitch/angular-nvd3 ## Basic Information - **Project Name**: angular-nvd3 - **Description**: An AngularJS directive for NVD3 reusable charting library (based on D3). Easily customize your charts via JSON API. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-12-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Angular-nvD3 [](https://travis-ci.org/krispo/angular-nvd3) This thing is designed to make it easier to work with [nvd3.js](https://github.com/novus/nvd3) re-usable charting library. This directive allows you to easily customize your charts via JSON API. The key feature is that the original hierarchical structure of nvd3 models is completely preserved in directive JSON structure. This means that while you creating a complex chart that containing multiple elementary chart models (such as `line`, `bar`, `axis`, ...), you can in turn customize the properties of each internal elementary models as well as the global charting properties the way you want. This can be done as usual, but it becomes quite easily to customize while applying JSON approach to. Try it [online](http://krispo.github.io/angular-nvd3/). ## How to use ### Install Install it via bower: $ bower install angular-nvd3 An [angular.js](https://angularjs.org/), [D3.js](http://d3js.org/) and [nvd3.js](http://nvd3.org/) would be installed as a dependency automatically. If it won't for some reason, install it manually: $ bower install angular $ bower install d3 $ bower install nvd3 > I advise you to use a newer nvd3 assembly rather than the last one installed via bower. A more recent and fixed assembly `nv.d3.js` and `nv.d3.css` you can find in the `lib` directory of this project. Also you can make your own assembly according to nvd3 docs. Add dependencies to the `
` section of your main html: ```html ``` If you don't use bower, you can manually download and unpack directive ([zip](https://github.com/krispo/angular-nvd3/archive/v0.0.3.zip), [tar.gz](https://github.com/krispo/angular-nvd3/archive/v0.0.3.tar.gz)). ### Basic usage Inject `nvd3` directive into angular module, set up some chart options and push some data to the controller: ```javascript angular.module('myApp', ['nvd3']) .controller('myCtrl', function('$scope'){ $scope.options = { /* JSON data */ }; $scope.data = { /* JSON data */ } }) ``` and in html again you can use it like: ```html