Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

Anthony Ho
Anthony Ho
10,228 Points

Adding charts to AngularJS

I'm having trouble following the instructions on adding the dependencies and directives.

http://jtblin.github.io/angular-chart.js/

2 Answers

Vikas Lalwani
Vikas Lalwani
10,413 Points

Have 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
Bryan Knight
34,214 Points

If 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
Anthony Ho
10,228 Points

i'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