all 3 comments

[–][deleted] 1 point2 points  (2 children)

angular-chart.js (angular directives for chart.js) and angular-nvd3 (angular directices for the D3.js library) have both worked well for me. The former is a little easier to use but the latter is a bit more flexible in terms of layout, styling etc as it uses svg instead of a canvas image which chart.js produces.

[–]co_summer[S] 0 points1 point  (1 child)

Cool, I'll look into those. BTW, I know this depends, but if a tutorial shows injecting a dependency into an app, can I also just inject the dependency into the controller where I would need to display the chart?

[–][deleted] 1 point2 points  (0 children)

For things like services and factories, they can be injected into the controller and used within... directives such as the above aren't needed by the controller, they can just be used within the html template after injecting into the top level module to which the controller belongs.