Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAnthony Ho
10,228 PointsAdding charts to AngularJS
I'm having trouble following the instructions on adding the dependencies and directives.
2 Answers
Vikas Lalwani
10,413 PointsHave you tried AngularJS charts plugin by FusionCharts? (they have a free license for personal use; without watermark).
Here's a detailed tutorial if you want to give it a try: http://www.codediesel.com/javascript/creating-interactive-charts-in-angularjs/
Bryan Knight
34,215 PointsIf you do bower install angular-chart.js --save then you don't have to worry about the dependencies . Bower is a package manager for javascript packages and it's whole point is to manage the dependencies that a package needs when it's being installed. The notices at the top of the page are more for your information of what will be installed as dependencies when you do bower install ... Let me know if that makes sense.
Anthony Ho
10,228 Pointsi'm more having an issue with gulp js build tool, because I'd have to configure the gulpfile.js when I add new javascript files.
And, would I add this : angular.module('myModule', ['chart.js']); to the chart.js file?
Thanks a lot