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.

404 lines
18 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head><script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-61231638-1', 'auto');ga('send', 'pageview');</script>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <title>Timeline Examples</title>
  8. <link rel="icon" HREF="favicon.ico">
  9. <!-- Bootstrap -->
  10. <link href="./css/bootstrap.css" rel="stylesheet">
  11. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  12. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  13. <!--[if lt IE 9]>
  14. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  15. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  16. <![endif]-->
  17. <link href="./css/prettify.css" rel="stylesheet" type="text/css" />
  18. <script type="text/javascript" src="./js/prettify/prettify.js"></script>
  19. <link href="./css/examples.css" rel="stylesheet" type="text/css" />
  20. <script src="./dist/vis.js"></script>
  21. <link href="./dist/vis.css" rel="stylesheet" type="text/css" />
  22. </head>
  23. <body>
  24. <div class="navbar-wrapper">
  25. <div class="container">
  26. <nav class="navbar navbar-inverse navbar-static-top" role="navigation">
  27. <div class="container">
  28. <div class="navbar-header">
  29. <a class="navbar-brand hidden-sm" href="./index.html">vis.js</a>
  30. </div>
  31. <div id="navbar" class="navbar-collapse collapse">
  32. <ul class="nav navbar-nav">
  33. <li class="active"><a href="./index.html#modules">Modules</a></li>
  34. <li><a href="./index.html#download_install">Download</a></li>
  35. <li><a href="./showcase/index.html">Showcase</a></li>
  36. <li><a href="./index.html#contribute">Contribute</a></li>
  37. <li><a href="./index.html#licenses">License</a></li>
  38. </ul>
  39. </div>
  40. </div>
  41. </nav>
  42. </div>
  43. </div>
  44. <div class="contentWrapper">
  45. <div id="networkContainer"></div>
  46. <div id="contentContainer">
  47. <h1>Timeline Examples</h1>
  48. This page contains examples which show how to use Timeline. For the documentation, please click the button below: <br><br>
  49. <a class="btn btn-primary" href="./docs/timeline" role="button">View docs »</a>
  50. <h3>basic usage</h3>
  51. <div class="container-fluid">
  52. <div class="col-lg-2 col-md-3 col-sm-6">
  53. <a href="examples/timeline/editing/updateDataOnEvent.html">
  54. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/basicUsage.png">
  55. <div class="exampleTitle">basic usage</div>
  56. </a>
  57. </div>
  58. </div>
  59. <h3>data handling</h3>
  60. <div class="container-fluid">
  61. <div class="col-lg-2 col-md-3 col-sm-6">
  62. <a href="examples/timeline/dataHandling/dataSerialization.html">
  63. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/dataHandling/dataSerialization.png">
  64. <div class="exampleTitle">data serialization</div>
  65. </a>
  66. </div>
  67. <div class="col-lg-2 col-md-3 col-sm-6">
  68. <a href="examples/timeline/dataHandling/loadExternalData.html">
  69. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/dataHandling/loadExternalData.png">
  70. <div class="exampleTitle">load external data</div>
  71. </a>
  72. </div>
  73. </div>
  74. <h3>editing</h3>
  75. <div class="container-fluid">
  76. <div class="col-lg-2 col-md-3 col-sm-6">
  77. <a href="examples/timeline/editing/customSnappingOfItems.html">
  78. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/editing/customSnappingOfItems.png">
  79. <div class="exampleTitle">data serialization</div>
  80. </a>
  81. </div>
  82. <div class="col-lg-2 col-md-3 col-sm-6">
  83. <a href="examples/timeline/editing/editingItems.html">
  84. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/editing/editingItems.png">
  85. <div class="exampleTitle">editing items</div>
  86. </a>
  87. </div>
  88. <div class="col-lg-2 col-md-3 col-sm-6">
  89. <a href="examples/timeline/editing/editingItemsCallbacks.html">
  90. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/editing/editingItemsCallbacks.png">
  91. <div class="exampleTitle">editing items callbacks</div>
  92. </a>
  93. </div>
  94. <div class="col-lg-2 col-md-3 col-sm-6">
  95. <a href="examples/timeline/editing/individualEditableItems.html">
  96. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/editing/individualEditableItems.png">
  97. <div class="exampleTitle">individual editable items</div>
  98. </a>
  99. </div>
  100. <div class="col-lg-2 col-md-3 col-sm-6">
  101. <a href="examples/timeline/editing/updateDataOnEvent.html">
  102. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/editing/updateDataOnEvent.png">
  103. <div class="exampleTitle">update data on event</div>
  104. </a>
  105. </div>
  106. <div class="col-lg-2 col-md-3 col-sm-6">
  107. <a href="examples/timeline/editing/tooltipOnItemChange.html">
  108. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/editing/tooltipOnItemChange.png">
  109. <div class="exampleTitle">tooltip on item change</div>
  110. </a>
  111. </div>
  112. </div>
  113. <h3>groups</h3>
  114. <div class="container-fluid">
  115. <div class="col-lg-2 col-md-3 col-sm-6">
  116. <a href=examples/timeline/groups/groups.html>
  117. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/groups/groups.png">
  118. <div class="exampleTitle">groups</div>
  119. </a>
  120. </div>
  121. <div class="col-lg-2 col-md-3 col-sm-6">
  122. <a href="examples/timeline/groups/groupsEditable.html">
  123. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/groups/groupsEditable.png">
  124. <div class="exampleTitle">groups editable</div>
  125. </a>
  126. </div>
  127. <div class="col-lg-2 col-md-3 col-sm-6">
  128. <a href="examples/timeline/groups/groupsOrdering.html">
  129. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/groups/groupsOrdering.png">
  130. <div class="exampleTitle">groups ordering</div>
  131. </a>
  132. </div>
  133. <div class="col-lg-2 col-md-3 col-sm-6">
  134. <a href="examples/timeline/groups/subgroups.html">
  135. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/groups/subgroups.png">
  136. <div class="exampleTitle">subgroups</div>
  137. </a>
  138. </div>
  139. <div class="col-lg-2 col-md-3 col-sm-6">
  140. <a href=examples/timeline/groups/verticalItemsHide.html>
  141. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/groups/verticalItemsHide.png">
  142. <div class="exampleTitle">vertical items hide</div>
  143. </a>
  144. </div>
  145. </div>
  146. <h3>interaction</h3>
  147. <div class="container-fluid">
  148. <div class="col-lg-2 col-md-3 col-sm-6">
  149. <a href="examples/timeline/interaction/animateWindow.html">
  150. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/interaction/animateWindow.png">
  151. <div class="exampleTitle">animate window</div>
  152. </a>
  153. </div>
  154. <div class="col-lg-2 col-md-3 col-sm-6">
  155. <a href="examples/timeline/interaction/clickToUse.html">
  156. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/interaction/clickToUse.png">
  157. <div class="exampleTitle">click to use</div>
  158. </a>
  159. </div>
  160. <div class="col-lg-2 col-md-3 col-sm-6">
  161. <a href="examples/timeline/interaction/eventListeners.html">
  162. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/interaction/eventListeners.png">
  163. <div class="exampleTitle">event listeners</div>
  164. </a>
  165. </div>
  166. <div class="col-lg-2 col-md-3 col-sm-6">
  167. <a href="examples/timeline/interaction/limitMoveAndZoom.html">
  168. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/interaction/limitMoveAndZoom.png">
  169. <div class="exampleTitle">limit move and zoom</div>
  170. </a>
  171. </div>
  172. <div class="col-lg-2 col-md-3 col-sm-6">
  173. <a href="examples/timeline/interaction/navigationMenu.html">
  174. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/interaction/navigationMenu.png">
  175. <div class="exampleTitle">navigation menu</div>
  176. </a>
  177. </div>
  178. <div class="col-lg-2 col-md-3 col-sm-6">
  179. <a href="examples/timeline/interaction/setSelection.html">
  180. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/interaction/setSelection.png">
  181. <div class="exampleTitle">set selection</div>
  182. </a>
  183. </div>
  184. </div>
  185. <h3>items</h3>
  186. <div class="container-fluid">
  187. <div class="col-lg-2 col-md-3 col-sm-6">
  188. <a href="examples/timeline/items/backgroundAreas.html">
  189. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/items/backgroundAreas.png">
  190. <div class="exampleTitle">background areas</div>
  191. </a>
  192. </div>
  193. <div class="col-lg-2 col-md-3 col-sm-6">
  194. <a href="examples/timeline/items/backgroundAreasWithGroups.html">
  195. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/items/backgroundAreasWithGroups.png">
  196. <div class="exampleTitle">background areas with groups</div>
  197. </a>
  198. </div>
  199. <div class="col-lg-2 col-md-3 col-sm-6">
  200. <a href="examples/timeline/items/htmlContents.html">
  201. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/items/htmlContents.png">
  202. <div class="exampleTitle">html contents</div>
  203. </a>
  204. </div>
  205. <div class="col-lg-2 col-md-3 col-sm-6">
  206. <a href="examples/timeline/items/itemOrdering.html">
  207. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/items/itemOrdering.png">
  208. <div class="exampleTitle">item ordering</div>
  209. </a>
  210. </div>
  211. <div class="col-lg-2 col-md-3 col-sm-6">
  212. <a href="examples/timeline/items/pointItems.html">
  213. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/items/pointItems.png">
  214. <div class="exampleTitle">point items</div>
  215. </a>
  216. </div>
  217. <div class="col-lg-2 col-md-3 col-sm-6">
  218. <a href="examples/timeline/items/rangeOverflowItem.html">
  219. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/items/rangeOverflowItem.png">
  220. <div class="exampleTitle">range over flow item</div>
  221. </a>
  222. </div>
  223. </div>
  224. <h3>other</h3>
  225. <div class="container-fluid">
  226. <div class="col-lg-2 col-md-3 col-sm-6">
  227. <a href="examples/timeline/other/requirejs/requirejs_example.html"">
  228. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/other/requirejs/requirejs_example.png">
  229. <div class="exampleTitle">require js</div>
  230. </a>
  231. </div>
  232. <div class="col-lg-2 col-md-3 col-sm-6">
  233. <a href="examples/timeline/other/customTimeBars.html">
  234. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/other/customTimeBars.png">
  235. <div class="exampleTitle">custom time bars</div>
  236. </a>
  237. </div>
  238. <div class="col-lg-2 col-md-3 col-sm-6">
  239. <a href="examples/timeline/other/dataAttributes.html">
  240. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/other/dataAttributes.png">
  241. <div class="exampleTitle">data attributes</div>
  242. </a>
  243. </div>
  244. <div class="col-lg-2 col-md-3 col-sm-6">
  245. <a href="examples/timeline/other/dataAttributesAll.html">
  246. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/other/dataAttributesAll.png">
  247. <div class="exampleTitle">data attributes all</div>
  248. </a>
  249. </div>
  250. <div class="col-lg-2 col-md-3 col-sm-6">
  251. <a href="examples/timeline/other/groupsPerformance.html">
  252. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/other/groupsPerformance.png">
  253. <div class="exampleTitle">groups performance</div>
  254. </a>
  255. </div>
  256. <div class="col-lg-2 col-md-3 col-sm-6">
  257. <a href="examples/timeline/other/hidingPeriods.html">
  258. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/other/hidingPeriods.png">
  259. <div class="exampleTitle">hiding periods</div>
  260. </a>
  261. </div>
  262. <div class="col-lg-2 col-md-3 col-sm-6">
  263. <a href="examples/timeline/other/localization.html">
  264. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/other/localization.png">
  265. <div class="exampleTitle">localization</div>
  266. </a>
  267. </div>
  268. <div class="col-lg-2 col-md-3 col-sm-6">
  269. <a href="examples/timeline/other/performance.html">
  270. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/other/performance.png">
  271. <div class="exampleTitle">performance</div>
  272. </a>
  273. </div>
  274. <div class="col-lg-2 col-md-3 col-sm-6">
  275. <a href="examples/timeline/other/rtl.html">
  276. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/other/rtl.png">
  277. <div class="exampleTitle">rtl</div>
  278. </a>
  279. </div>
  280. <div class="col-lg-2 col-md-3 col-sm-6">
  281. <a href="examples/timeline/other/timezone.html">
  282. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/other/timezone.png">
  283. <div class="exampleTitle">timezone</div>
  284. </a>
  285. </div>
  286. <div class="col-lg-2 col-md-3 col-sm-6">
  287. <a href="examples/timeline/other/drag&drop.html">
  288. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/other/drag&drop.png">
  289. <div class="exampleTitle">drag & drop</div>
  290. </a>
  291. </div>
  292. <div class="col-lg-2 col-md-3 col-sm-6">
  293. <a href="examples/timeline/other/functionLabelFormats.html">
  294. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/other/functionLabelFormats.png">
  295. <div class="exampleTitle">function label formats</div>
  296. </a>
  297. </div>
  298. <div class="col-lg-2 col-md-3 col-sm-6">
  299. <a href="examples/timeline/other/horizontalScroll.html">
  300. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/other/horizontalScroll.png">
  301. <div class="exampleTitle">horizontal scroll</div>
  302. </a>
  303. </div>
  304. <div class="col-lg-2 col-md-3 col-sm-6">
  305. <a href="examples/timeline/other/usingReact.html">
  306. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/other/usingReact.png">
  307. <div class="exampleTitle">using react</div>
  308. </a>
  309. </div>
  310. <div class="col-lg-2 col-md-3 col-sm-6">
  311. <a href="examples/timeline/other/verticalScroll.html">
  312. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/other/verticalScroll.png">
  313. <div class="exampleTitle">vertical sroll</div>
  314. </a>
  315. </div>
  316. </div>
  317. <h3>styling</h3>
  318. <div class="container-fluid">
  319. <div class="col-lg-2 col-md-3 col-sm-6">
  320. <a href="examples/timeline/styling/axisOrientation.html">
  321. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/styling/axisOrientation.png">
  322. <div class="exampleTitle">exis orientation</div>
  323. </a>
  324. </div>
  325. <div class="col-lg-2 col-md-3 col-sm-6">
  326. <a href="examples/timeline/styling/customCss.html">
  327. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/styling/customCss.png">
  328. <div class="exampleTitle">custom css</div>
  329. </a>
  330. </div>
  331. <div class="col-lg-2 col-md-3 col-sm-6">
  332. <a href="examples/timeline/styling/gridStyling.html">
  333. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/styling/gridStyling.png">
  334. <div class="exampleTitle">grid styling</div>
  335. </a>
  336. </div>
  337. <div class="col-lg-2 col-md-3 col-sm-6">
  338. <a href="examples/timeline/styling/itemClassNames.html">
  339. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/styling/itemClassNames.png">
  340. <div class="exampleTitle">item class names</div>
  341. </a>
  342. </div>
  343. <div class="col-lg-2 col-md-3 col-sm-6">
  344. <a href="examples/timeline/styling/itemTemplates.html">
  345. <img class="timeline_example img-responsive" src="./images/exampleScreenshots/timeline/styling/itemTemplates.png">
  346. <div class="exampleTitle">item templates</div>
  347. </a>
  348. </div>
  349. </div>
  350. </body>
  351. </html>