-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
36 lines (29 loc) · 1.16 KB
/
index.html
File metadata and controls
36 lines (29 loc) · 1.16 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
<!DOCTYPE html>
<html ng-app="angularjs-starter">
<head>
<title>Angular ChartJs Pie 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-pie-directive.js"></script>
<script>
var app = angular.module('angularjs-starter', ['angular.directives-chartjs-pie']);
app.controller('MainCtrl', function($scope) {
$scope.pieData = [
{value: 30, color:"#F38630"},
{value : 50, color : "#E0E4CC"},
{value : 100, color : "#69D2E7"}
]
});
</script>
</head>
<body ng-controller="MainCtrl">
<h1>AngularJS Chart.js Pie Directive</h1>
<p>Have a look at the source code to see an example.</p>
<ang:chartjs:pie data-chartjs-model="pieData"
data-chartjs-width="400"
data-chartjs-height="400"
data-chartjs-animation-easing="easeOutQuint">
</ang:chartjs:pie>
</body>
</html>