forked from restorando/cornelius
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
37 lines (30 loc) · 763 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Demo</title>
<script src="src/cornelius.js"></script>
<link rel="stylesheet" type="text/css" href="src/cornelius.css"/>
</head>
<body>
<div id="my-container">
</div>
<script>
Cornelius.draw({
// required params
initialDate: new Date(2013, 3),
container: document.getElementById('my-container'),
cohort: [
[1973, 1000, 750, 300, 400, 70, 20],
[1268, 549, 336, 221, 122, 115],
[1892, 1282, 250, 32, 18],
[1832, 379, 254, 314],
[1171, 256, 120],
[2533, 340]
],
/* any other options */
timeInterval: 'weekly'
});
</script>
</body>
</html>