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.

22 lines
619 B

  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <title>Timeline | <%- name %></title>
  5. <script src="/dist/vis.js"></script>
  6. <link href="/dist/vis-timeline-graph2d.min.css" rel="stylesheet" type="text/css" />
  7. <style type="text/css">
  8. #timeline {
  9. width: 1024px;
  10. }
  11. </style>
  12. </head>
  13. <body>
  14. <div id="timeline" class="gemini-test-timeline"></div>
  15. <script type="text/javascript">
  16. var container = document.getElementById('timeline');
  17. var items = new vis.DataSet(<%- JSON.stringify(data) %>);
  18. var options = <%- JSON.stringify(options) %>;
  19. var timeline = new vis.Timeline(container, items, options);
  20. </script>
  21. </body>
  22. </html>