I want to use angular-chart.js so I followed the installation instructions first I downloaded the latest version from github of Charts.js https://github.com/chartjs/Chart.js and then I downloaded the latest version of angular-charts.js from github https://github.com/jtblin/angular-chart.js.
I copy and pasted this files into my project:
This file is from chart.js chart.js (I copied this file from chart.js notice that the first letter is in lower case)
THis file is from angular-chart.js angular-chart.min.js
Included both like this
<script src="/myApp/chart.js"></script>
<script src="/myApp/angular-chart.min.js"></script>
and then I added this directive to my app
angular.module('myApp',
[
'zingchart-angularjs',
'oitozero.ngSweetAlert',
'chart.js'
])
But I get this error
chart.js:4 Uncaught ReferenceError: require is not defined(anonymous function) @ chart.js:4
angular-chart.min.js:10Uncaught Error: Chart.js library needs to be included, see http://jtblin.github.io/angular-chart.js/
angular.min.js:6 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.5.7/$injector/modulerr?