vis.js is a dynamic, browser-based visualization library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
850 B

  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <title>Timeline | BasicExample</title>
  5. <script src="/dist/vis.js"></script>
  6. <link href="/dist/vis-timeline-graph2d.min.css" rel="stylesheet" type="text/css" />
  7. </head>
  8. <body>
  9. <div id="timeline" class="gemini-test-timeline"></div>
  10. <script type="text/javascript">
  11. var container = document.getElementById('timeline');
  12. var items = new vis.DataSet([
  13. {id: 1, content: 'item 1', start: '2014-04-20'},
  14. {id: 2, content: 'item 2', start: '2014-04-14'},
  15. {id: 3, content: 'item 3', start: '2014-04-18'},
  16. {id: 4, content: 'item 4', start: '2014-04-16', end: '2014-04-19'},
  17. {id: 5, content: 'item 5', start: '2014-04-25'},
  18. {id: 6, content: 'item 6', start: '2014-04-27', type: 'point'}
  19. ]);
  20. var options = {};
  21. var timeline = new vis.Timeline(container, items, options);
  22. </script>
  23. </body>
  24. </html>