Chartjs-Angular Charts โ€“ not able to read data

1๐Ÿ‘

โœ…

You are importing the wrong library.

You have imported angular-charts located at https://github.com/chinmaymk/angular-charts.

But, you are using directives that are a part of angular-chart located at http://jtblin.github.io/angular-chart.js/

You were correct at first when you were including the chart.js dependency, you just have the wrong library.

angular.module('myModule', ['chart.js']);

Here is a working version of your code: https://plnkr.co/edit/tUsMwgOBcFJrV1xTMcF0?p=preview

Leave a comment