|
|
- <!DOCTYPE HTML>
- <html>
- <head>
- <title>Timeline | Basic demo</title>
-
- <style type="text/css">
- body, html {
- font-family: sans-serif;
- }
- </style>
-
- <script src="../../dist/vis.js"></script>
- <link href="../../dist/vis.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="visualization"></div>
-
- <script type="text/javascript">
- var container = document.getElementById('visualization');
- var items = [
- {id: 1, content: 'item 1', start: '2014-04-20'},
- {id: 2, content: 'item 2', start: '2014-04-14'},
- {id: 3, content: 'item 3', start: '2014-04-18'},
- {id: 5, content: 'item 5', start: '2014-04-25'},
- {id: 6, content: 'item 6', start: '2014-04-27'},
- {id: 7, content: 'item 3', start: '2014-06-18'},
- {id: 8, content: 'item 5', start: '2014-06-25'},
- {id: 9, content: 'item 6', start: '2014-06-27'},
- {id: 10, content: 'item 3', start: '2014-06-18'},
- {id: 11, content: 'item 5', start: '2014-06-25'},
- {id: 12, content: 'item 6', start: '2014-01-27'},
- {id: 13, content: 'item 3', start: '2014-01-18'},
- {id: 14, content: 'item 5', start: '2014-01-25'},
- {id: 15, content: 'item 6', start: '2014-02-27'},
- {id: 16, content: 'item 3', start: '2014-02-18'},
- {id: 17, content: 'item 5', start: '2014-02-25'},
- {id: 18, content: 'item 6', start: '2014-09-27'},
- {id: 24, content: 'item 4', start: '2014-05-16', end: '2015-06-19'}
- ];
- var options = {
- start: '2014-02-10',
- end: '2014-05-10'
- };
- var timeline = new vis.Timeline(container, items, options);
- </script>
- </body>
- </html>
|