Chartjs-How to inject "Chart.js" in my module?

1👍

I guess you are using a different version of angular-chart.js. Try using angularCharts instead of chart.js as the dependency module name, like so …

var app = angular.module("app", ["angularCharts", "ui.bootstrap", "ui.bootstrap.typeahead"]);

app.controller('financeAnalyticsController', function($scope, $http, $filter) {
   $scope.a="testing";
});

or, use this version of angular-chart.js

see a working example

Leave a comment