In this blog, we will learn using D3 chart with AngularJS. We will use D3 by injecting it in our angular application.
For more details click here
Step 1: Create index.html, directive.js, controller.js, app.js files
First of all we need to understand the role of all file.
- index.html is needed for rendering chart.
- app.js is needed for using angular application.
- controller.js is for angular controller.
- directive.js is for angular directive.
Once we have created all files, we need to use it in index.html.
http://../js/Angular.min.js //Here Angular.min.js is used for AngularJs. http://../js/app.jshttp://../js/controllers/controller.js
View original post 419 more words