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.

39 lines
829 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="../../dist/vis.js"></script>
  11. <link href="../../dist/vis.css" rel="stylesheet" type="text/css" />
  12. </head>
  13. <body>
  14. <div id="visualization"></div>
  15. <script type="text/javascript">
  16. var container = document.getElementById('visualization');
  17. var items = [
  18. {start: '2014-05-05', value: 80},
  19. {start: '2014-05-18', value: 30},
  20. {start: '2014-05-21', value: 30},
  21. {start: '2014-07-30', value: 70},
  22. {start: '2014-07-25', value: 65},
  23. {start: '2014-06-30', value: 30},
  24. {start: '2014-08-05', value: 40}
  25. ];
  26. var options = {};
  27. var timeline = new vis.Timeline(container, items, options);
  28. </script>
  29. </body>
  30. </html>