forked from iufer/Bubbles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
39 lines (34 loc) · 1.41 KB
/
demo.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
<html>
<head>
<title>Demo</title>
<script src="raphael-min.js" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
<script src="raphael.makeBubble.js" type="text/javascript"></script>
<style type="text/css">
.bubbledata { color:white; font-family:sans-serif; font-weight:800;}
.bubblelabel { color:white; font-family:sans-serif;}
</style>
</head>
<body>
<style type="text/css">
.bubbledata { color:white; font-family:sans-serif; font-weight:800;}
.bubblelabel { color:white; font-family:sans-serif;}
</style>
<div id="bubbletexts" style="position:relative; z-index:10;" ></div>
<div id="bubbles" style="position:relative; z-index:0;"></div>
<script type="text/javascript">
var xOrigin = 84, // from the left
yOrigin = 108, // from the top
radius = 60,
colorIndex = 0, // pick the color set from the bubbleDefaults.color array
animationOrder = 1, // the order that this bubble pops up. you can have multiple bubbles popup at the same time
dataText = '2,500',
labelText = 'People',
dataClass = 'bigFontClass',
labelClass = 'labelFontClass',
strong = false;
paper = Raphael(document.getElementById('bubbles'), 300, 300);
paper.makeBubble(xOrigin, yOrigin, radius, colorIndex, animationOrder, dataText, labelText, dataClass, labelClass, strong);
</script>
</body>
</html>