-
Notifications
You must be signed in to change notification settings - Fork 15
/
test.html
70 lines (59 loc) · 1.83 KB
/
test.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
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Spidergraph Demo</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="assets/js/jquery.spidergraph.js"></script>
</head>
<body>
<style>
#spidergraphcontainer {
width: 600px;
height: 600px;
position: absolute;
top: 50%;
left: 50%;
margin-top: -300px;
margin-left: -300px;
}
</style>
<h1>Spidergraph Demo</h1>
<p>View source for example usage</p>
<div id="spidergraphcontainer"></div>
<script>
$(document).ready( function() {
$('#spidergraphcontainer').spidergraph({
'fields': ['a','b','c','d','e'],
'gridcolor': 'rgba(20,20,20,1)'
});
$('#spidergraphcontainer').spidergraph('addlayer', {
'strokecolor': 'rgba(230,104,0,0.8)',
'fillcolor': 'rgba(230,104,0,0.6)',
'data': [0, 8, 2, 4, 9]
});
$('#spidergraphcontainer').spidergraph('addlayer', {
'strokecolor': 'rgba(230,204,0,0.8)',
'fillcolor': 'rgba(230,204,0,0.6)',
'data': [5, 4, 9, 9, 4]
});
$('#spidergraphcontainer').spidergraph('resetdata');
$('#spidergraphcontainer').spidergraph('setactivedata', {
'strokecolor': 'rgba(230,104,230,0.8)',
'fillcolor': 'rgba(230,104,230,0.6)',
'data': [3, 2, 3, 4, 9]
});
$('#spidergraphcontainer').spidergraph('addlayer', {
'strokecolor': 'rgba(230,204,0,0.8)',
'fillcolor': 'rgba(230,204,0,0.6)',
'data': [5, 4, 9, 8, 1]
});
$('#spidergraphcontainer').spidergraph('addlayer', {
'strokecolor': 'rgba(230,104,0,0.8)',
'fillcolor': 'rgba(230,104,0,0.6)',
'data': [0, 8, 2, 3, 5]
});
});
</script>
</body>
</html>