-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (41 loc) · 1.3 KB
/
index.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
<!--
--file : index.html
--version : 1.0
--Author: Huang Min
from Sun Yat-sen University, Schools of Software Software engineering
mail: [email protected]
!-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Center Relation</title>
<!-- loading centerRelation.css -->
<link href="css/centerRelation.css" rel="stylesheet">
</head>
<body>
<div class="container">
<h1>Center Relation demo</h1>
<!-- An container to put the Center Relation graph in -->
<div id="centerShow">
</div>
</div>
<!-- Load JS here for greater good =============================-->
<script src="js/raphael-min.js"></script>
<script src="js/centerRelation.js"></script>
<script type="text/javascript">
/* An array of object. Save the relation data you want to show in graph*/
dataArray = new Array();
var i;
/* The smaller the obj.num is, the nearer the obj.name is*/
for(i=0;i<22;i++){
var obj = new Object();
obj.name = "python" + i;
obj.num = Math.random()*5;
dataArray[i] = obj;
}
// call the funciton in centerRelation.js to draw the graph
cr = new CenterRelation("centerTEXT", "centerShow", dataArray, 800, 500, 40, "bounce", 3000, "http://www.");
</script>
</body>
</html>