-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtl.html
53 lines (51 loc) · 7.63 KB
/
tl.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
<!doctype html>
<html>
<head>
<title>Vis.js Timeline Example</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.min.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="timeline"></div>
<script type="text/javascript">
// Create a DataSet (allows two way data-binding)
var items = new vis.DataSet([
{id: 1, content: 'item 1', start: '2023-04-20'},
{id: 2, content: 'item 2', start: '2023-04-14'},
{id: 3, content: 'item 3', start: '2023-04-18'},
{id: 4, content: 'item 4', start: '2023-04-16'},
{id: 5, content: 'item 5', start: '2023-04-25'},
{id: 6, content: 'item 6', start: '2023-04-27'}
]);
// Create a timeline
var container = document.getElementById('timeline');
var options = {};
var timeline = new vis.Timeline(container, items, options);
</script>
</body>
</html><!doctype html>
<html>
<head>
<title>Vis.js Timeline Example</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.min.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="timeline"></div>
<script type="text/javascript">
// Create a DataSet (allows two way data-binding)
var items = new vis.DataSet([
{id: 1, content: 'item 1', start: '2023-04-20'},
{id: 2, content: 'item 2', start: '2023-04-14'},
{id: 3, content: 'item 3', start: '2023-04-18'},
{id: 4, content: 'item 4', start: '2023-04-16'},
{id: 5, content: 'item 5', start: '2023-04-25'},
{id: 6, content: 'item 6', start: '2023-04-27'}
]);
// Create a timeline
var container = document.getElementById('timeline');
var options = {};
var timeline = new vis.Timeline(container, items, options);
</script>
</body>
</html>