Chartjs-Can't use a chart module with angularjs

1👍

You need to include the script tags inside the body tag, also you included the angular.min.js twice.

<!DOCTYPE HTML>
<html>
<body ng-app = "myApp">
<ng-gauge size="150" type="full" thick="5" 
      min="0" max="120" value="68.2" 
      cap="round" label="Speed" append="mph"
      foreground-color="#ffcc66" background-color="#EEE">
</ng-gauge>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.5/angular.min.js"></script>
<script src="https://rawgit.com/ashish-chopra/angular-gauge/master/src/angularjs-gauge.js"></script>

<script>

angular.module('myApp', ['angularjs-gauge']);

</script>
</body>

</html>

Leave a comment