-
Notifications
You must be signed in to change notification settings - Fork 0
/
piepie.html
58 lines (57 loc) · 1.51 KB
/
piepie.html
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
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>PiePie charting</title>
<script src="https://raw.github.com/DmitryBaranovskiy/raphael/master/raphael.js"></script>
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="build/util.js"></script>
<script src="build/piepie.js"></script>
<script>
$(window).load(function(){
new PiePie({
x: 0,
y: 0,
width: 350,
height: 300,
background: {fill: "#eee", stroke: "none"},
colors: ["#265434", "#3F99D2", "#ED23CD", "#B6EBD9", "#68AB79"],
dataURL: "testdata/piepie.json",
rotation: 0
});
new PiePie({
x: 360,
y: 0,
width: 350,
height: 300,
background: {fill: "#eee", stroke: "none"},
colors: ["#358434", "#3259D2", "#0D23CD", "#E6EB19", "#18ABF9"],
dataURL: "testdata/piepie1.json",
rotation: 90
});
new PiePie({
x: 360,
y: 310,
width: 350,
height: 300,
background: {fill: "#eee", stroke: "none"},
colors: ["#912434", "#3F9222", "#1223CD", "#BCEB09", "#31A379"],
dataURL: "testdata/piepie2.json",
rotation: 180
});
new PiePie({
x: 0,
y: 310,
width: 350,
height: 300,
background: {fill: "#eee", stroke: "none"},
colors: ["#245412", "#5634D2", "#ED35CD", "#41EBD9", "#68AB22"],
dataURL: "testdata/piepie3.json",
rotation: 270
});
});
</script>
</head>
<body>
</body>
</html>