Check out the demo.
This repo is for distribution on npm
and bower
.
You can install this package either with npm
or with bower
.
The library is then available at ``.
Add reference to ng-d3-chart js and css
<link rel="stylesheet" href="/bower_components/ng-d3-charts/ng-d3-charts.min.css">
<script src="/bower_components/ng-d3-charts/ng-d3-charts.min.js"></script>
Where you declare your app module, add ng-d3-charts:
angular.module('myApp',[
'ng-d3-charts',
]);
In your javascript file within the controller where you plan to use ng-d3-charts, declare:
angular.controller('home',function($scope,chartConfig){
//YouTube player configuration
$scope.chartConfig = new chartConfig({});
});
In your html file within the controller where you plan to use ng-d3-charts, add: