-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (43 loc) · 1.71 KB
/
index.html
File metadata and controls
50 lines (43 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html ng-app="angularjs-starter">
<head>
<title>Angular ChartJs Radar Directive</title>
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet" />
<script src="Chart.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
<script src="angular-chartjs-radar-directive.js"></script>
<script>
var app = angular.module('angularjs-starter', ['angular.directives-chartjs-radar']);
app.controller('MainCtrl', function($scope) {
$scope.radarData = {
labels : ["Eating","Drinking","Sleeping","Designing","Coding","Partying","Running"],
datasets : [
{
fillColor : "rgba(220,220,220,0.5)",
strokeColor : "rgba(220,220,220,1)",
pointColor : "rgba(220,220,220,1)",
pointStrokeColor : "#fff",
data : [65,59,90,81,56,55,40]
},
{
fillColor : "rgba(151,187,205,0.5)",
strokeColor : "rgba(151,187,205,1)",
pointColor : "rgba(151,187,205,1)",
pointStrokeColor : "#fff",
data : [28,48,40,19,96,27,100]
}
]
}
});
</script>
</head>
<body ng-controller="MainCtrl">
<h1>AngularJS Chart.js Radar Directive</h1>
<p>Have a look at the source code to see an example.</p>
<ang:chartjs:radar data-chartjs-model="radarData"
data-chartjs-width="400"
data-chartjs-height="400"
data-chartjs-animation-easing="easeOutQuint">
</ang:chartjs:radar>
</body>
</html>