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.

30 lines
912 B

  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <title>Timeline basic demo</title>
  5. <style type="text/css">
  6. body, html {
  7. font-family: sans-serif;
  8. }
  9. </style>
  10. <script src="../../vis.js"></script>
  11. </head>
  12. <body>
  13. <div id="visualization"></div>
  14. <script type="text/javascript">
  15. var container = document.getElementById('visualization');
  16. var data = [
  17. {id: 1, content: 'item 1', start: '2013-04-20'},
  18. {id: 2, content: 'item 2', start: '2013-04-14'},
  19. {id: 3, content: 'item 3', start: '2013-04-18'},
  20. {id: 4, content: 'item 4', start: '2013-04-16', end: '2013-04-19'},
  21. {id: 5, content: 'item 5', start: '2013-04-25'},
  22. {id: 6, content: 'item 6', start: '2013-04-27'}
  23. ];
  24. var options = {};
  25. var timeline = new vis.Timeline(container, data, options);
  26. </script>
  27. </body>
  28. </html>