-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.html
52 lines (51 loc) · 1.06 KB
/
example.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Example of sirGraphsALot</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<div id="wrapper">
<h1>Welcome to SirGraphsALot</h1>
<ul id="graph-me">
<li>Fact 1: 89</li>
<li>Fact 2: 19</li>
<li>Fact 3: 54</li>
<li>Fact 4: 37</li>
</ul>
<ul id="little-graph">
<li>Fact 1: 8</li>
<li>Fact 2: 5</li>
<li>Fact 3: 1</li>
</ul>
</div>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="sirgraphsalot.jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#graph-me').graph({
color: '#00B3FF',
scale: 100,
interval: 25,
});
$('#little-graph').graph({
color: '#005EFF',
scale: 10,
interval: 5,
intervalColor: '#808080',
multiply: 10,
});
/*
Ways to set color
$('#graph-me').graph({
color:'red',
});
$('#graph-me').graph({
color:new Array('red','blue','green'),
});
*/
});
</script>
</body>
</html>