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.

607 lines
18 KiB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>vis.js | a dynamic, browser-based visualization library</title>
  5. <meta charset='utf-8' />
  6. <meta name="title" content="vis.js">
  7. <meta name="description" content="vis.js is a dynamic, browser-based visualization library" />
  8. <meta name="keywords" content="vis, visualization, javascript, browser based, web based, chart, linechart, timeline, graph, network, browser" />
  9. <meta name="author" content="Almende B.V.">
  10. <link href="docs/css/prettify.css" type="text/css" rel="stylesheet" />
  11. <link href='docs/css/style.css' type='text/css' rel='stylesheet'>
  12. <link href="css/style.css" type="text/css" rel="stylesheet" >
  13. <script type="text/javascript" src="docs/lib/prettify/prettify.js"></script>
  14. </head>
  15. <body onload="prettyPrint();">
  16. <div id="container">
  17. <div id="menu">
  18. <a href="http://visjs.org/"><img src="img/logo/vis128.png" alt="logo"></a>
  19. <div class="nav">
  20. <ul>
  21. <li><a href="#install">Install</a></li>
  22. <li><a href="#example">Example</a></li>
  23. <li><a href="#gallery">Gallery</a></li>
  24. <li>
  25. <a href="docs/index.html" target="_blank">
  26. Docs
  27. <img src="img/external-link-icons/external-link-icon.png" style="vertical-align: text-top;" title="Docs will open in a new window">
  28. </a>
  29. </li>
  30. <li><a href="#license">License</a></li>
  31. </ul>
  32. </div>
  33. </div>
  34. <h1>
  35. vis.js<br>
  36. <span class="subtitle">a visual interaction system</span>
  37. </h1>
  38. <p>
  39. Vis.js is a dynamic, browser based visualization library.
  40. The library is designed to be easy to use, to handle large amounts
  41. of dynamic data, and to enable manipulation of and interaction with the data.
  42. The library consists of the components DataSet, Timeline, Network, Graph2d, and Graph3d.
  43. </p>
  44. <p>
  45. The vis.js library is developed by <a href="http://almende.com" target="_blank">Almende B.V</a>,
  46. as part of <a href="http://chap.almende.com/" target="_blank">CHAP</a>.
  47. Vis.js runs fine on Chrome, Firefox, Opera, Safari, IE9+, and most mobile browsers (with full touch support).
  48. </p>
  49. <h2 id="install">Install</h2>
  50. <h3>npm</h3>
  51. <pre class="prettyprint">
  52. npm install vis
  53. </pre>
  54. <h3>bower</h3>
  55. <pre class="prettyprint">
  56. bower install vis
  57. </pre>
  58. <h3>download</h3>
  59. <a href="download/vis.zip">Click here to download vis.js</a>
  60. (version <span class="version">3.1.0</span>)
  61. <h2 id="example">Example</h2>
  62. <p>
  63. A basic example demonstrating how to use the vis.js timeline is shown below.
  64. See the <a href="#gallery">gallery</a> below for more examples.
  65. </p>
  66. <pre class="prettyprint lang-html">&lt;!doctype html&gt;
  67. &lt;html&gt;
  68. &lt;head&gt;
  69. &lt;link href="http://visjs.org/dist/vis.css" rel="stylesheet" type="text/css" /&gt;
  70. &lt;script src="http://visjs.org/dist/vis.js"&gt;&lt;/script&gt;
  71. &lt;/head&gt;
  72. &lt;body&gt;
  73. &lt;div id="mytimeline"&gt;&lt;/div&gt;
  74. &lt;script type="text/javascript"&gt;
  75. // DOM element where the Timeline will be attached
  76. var container = document.getElementById('mytimeline');
  77. // Create a DataSet with data (enables two way data binding)
  78. var data = new vis.DataSet([
  79. {id: 1, content: 'item 1', start: '2013-04-20'},
  80. {id: 2, content: 'item 2', start: '2013-04-14'},
  81. {id: 3, content: 'item 3', start: '2013-04-18'},
  82. {id: 4, content: 'item 4', start: '2013-04-16', end: '2013-04-19'},
  83. {id: 5, content: 'item 5', start: '2013-04-25'},
  84. {id: 6, content: 'item 6', start: '2013-04-27'}
  85. ]);
  86. // Configuration for the Timeline
  87. var options = {};
  88. // Create a Timeline
  89. var timeline = new vis.Timeline(container, data, options);
  90. &lt;/script&gt;
  91. &lt;/body&gt;
  92. &lt;/html&gt;
  93. </pre>
  94. <h2 id="gallery">Gallery</h2>
  95. This gallery gives an idea of the features and possibilities of the library.
  96. The source code of the examples can be found in the
  97. <a href="https://github.com/almende/vis/tree/master/examples" target="_blank">examples directory</a>.
  98. <h3 id="timeline">Timeline</h3>
  99. <p>
  100. The timeline from vis.js displays different types of data on a timeline.
  101. </p>
  102. <div class="gallery">
  103. <div class="thumb">
  104. <a href="examples/timeline/01_basic.html">
  105. <img src="img/gallery/timeline/01_basic.png">
  106. <div>basic usage</div>
  107. </a>
  108. </div>
  109. <div class="thumb">
  110. <a href="examples/timeline/02_interactive.html">
  111. <img src="img/gallery/timeline/02_interactive.png">
  112. <div>interactive</div>
  113. </a>
  114. </div>
  115. <div class="thumb">
  116. <a href="examples/timeline/03_a_lot_of_data.html">
  117. <img src="img/gallery/timeline/03_a_lot_of_data.png">
  118. <div>a lot of data</div>
  119. </a>
  120. </div>
  121. <div class="thumb">
  122. <a href="examples/timeline/04_html_data.html">
  123. <img src="img/gallery/timeline/04_html_data.png">
  124. <div>html data</div>
  125. </a>
  126. </div>
  127. <div class="thumb">
  128. <a href="examples/timeline/05_groups.html">
  129. <img src="img/gallery/timeline/05_groups.png">
  130. <div>groups</div>
  131. </a>
  132. </div>
  133. <div class="thumb">
  134. <a href="examples/timeline/06_event_listeners.html">
  135. <img src="img/gallery/timeline/06_event_listeners.png">
  136. <div>event listeners</div>
  137. </a>
  138. </div>
  139. <div class="thumb">
  140. <a href="examples/timeline/07_custom_time_bar.html">
  141. <img src="img/gallery/timeline/07_custom_time_bar.png">
  142. <div>custom time bar</div>
  143. </a>
  144. </div>
  145. <div class="thumb">
  146. <a href="examples/timeline/08_edit_items.html">
  147. <img src="img/gallery/timeline/08_edit_items.png">
  148. <div>edit items</div>
  149. </a>
  150. </div>
  151. <div class="thumb">
  152. <a href="examples/timeline/09_order_groups.html">
  153. <img src="img/gallery/timeline/09_order_groups.png">
  154. <div>order groups</div>
  155. </a>
  156. </div>
  157. <div class="thumb">
  158. <a href="examples/timeline/10_limit_move_and_zoom.html">
  159. <img src="img/gallery/timeline/10_limit_move_and_zoom.png">
  160. <div>limit move and zoom</div>
  161. </a>
  162. </div>
  163. <div class="thumb">
  164. <a href="examples/timeline/11_points.html">
  165. <img src="img/gallery/timeline/11_points.png">
  166. <div>points</div>
  167. </a>
  168. </div>
  169. <div class="thumb">
  170. <a href="examples/timeline/12_custom_styling.html">
  171. <img src="img/gallery/timeline/12_custom_styling.png">
  172. <div>custom styling</div>
  173. </a>
  174. </div>
  175. <div class="thumb">
  176. <a href="examples/timeline/13_past_and_future.html">
  177. <img src="img/gallery/timeline/13_past_and_future.png">
  178. <div>past and future</div>
  179. </a>
  180. </div>
  181. <div class="thumb">
  182. <a href="examples/timeline/14_a_lot_of_grouped_data.html">
  183. <img src="img/gallery/timeline/14_a_lot_of_grouped_data.png">
  184. <div>a lot of grouped data</div>
  185. </a>
  186. </div>
  187. <div class="thumb">
  188. <a href="examples/timeline/15_item_class_names.html">
  189. <img src="img/gallery/timeline/15_item_class_names.png">
  190. <div>item class names</div>
  191. </a>
  192. </div>
  193. <div class="thumb">
  194. <a href="examples/timeline/16_navigation_menu.html">
  195. <img src="img/gallery/timeline/16_navigation_menu.png">
  196. <div>navigation menu</div>
  197. </a>
  198. </div>
  199. <div class="thumb">
  200. <a href="examples/timeline/17_data_serialization.html">
  201. <img src="img/gallery/timeline/17_data_serialization.png">
  202. <div>data_serialization</div>
  203. </a>
  204. </div>
  205. </div>
  206. <h3 id="network">Network</h3>
  207. <p>
  208. The Network visualization visualizes graphs and networks with
  209. customizable styles.
  210. </p>
  211. <div class="gallery">
  212. <div class="thumb">
  213. <a href="examples/network/01_basic_usage.html">
  214. <img src="img/gallery/network/01_basic_usage.png">
  215. <div>basic usage</div>
  216. </a>
  217. </div>
  218. <div class="thumb">
  219. <a href="examples/network/02_random_nodes.html">
  220. <img src="img/gallery/network/02_random_nodes.png">
  221. <div>random nodes</div>
  222. </a>
  223. </div>
  224. <div class="thumb">
  225. <a href="examples/network/03_images.html">
  226. <img src="img/gallery/network/03_images.png">
  227. <div>images</div>
  228. </a>
  229. </div>
  230. <div class="thumb">
  231. <a href="examples/network/04_shapes.html">
  232. <img src="img/gallery/network/04_shapes.png">
  233. <div>shapes</div>
  234. </a>
  235. </div>
  236. <div class="thumb">
  237. <a href="examples/network/05_social_network.html">
  238. <img src="img/gallery/network/05_social_network.png">
  239. <div>social network</div>
  240. </a>
  241. </div>
  242. <div class="thumb">
  243. <a href="examples/network/06_groups.html">
  244. <img src="img/gallery/network/06_groups.png">
  245. <div>groups</div>
  246. </a>
  247. </div>
  248. <div class="thumb">
  249. <a href="examples/network/07_selections.html">
  250. <img src="img/gallery/network/07_selections.png">
  251. <div>selections</div>
  252. </a>
  253. </div>
  254. <div class="thumb">
  255. <a href="examples/network/08_mobile_friendly.html">
  256. <img src="img/gallery/network/08_mobile_friendly.png">
  257. <div>mobile friendly</div>
  258. </a>
  259. </div>
  260. <div class="thumb">
  261. <a href="examples/network/09_sizing.html">
  262. <img src="img/gallery/network/09_sizing.png">
  263. <div>sizing</div>
  264. </a>
  265. </div>
  266. <div class="thumb">
  267. <a href="examples/network/10_multiline_text.html">
  268. <img src="img/gallery/network/10_multiline_text.png">
  269. <div>multiline text</div>
  270. </a>
  271. </div>
  272. <div class="thumb">
  273. <a href="examples/network/11_custom_style.html">
  274. <img src="img/gallery/network/11_custom_style.png">
  275. <div>custom style</div>
  276. </a>
  277. </div>
  278. <div class="thumb">
  279. <a href="examples/network/12_scalable_images.html">
  280. <img src="img/gallery/network/12_scalable_images.png">
  281. <div>scalable images</div>
  282. </a>
  283. </div>
  284. <div class="thumb">
  285. <a href="examples/network/13_dashed_lines.html">
  286. <img src="img/gallery/network/13_dashed_lines.png">
  287. <div>dashed lines</div>
  288. </a>
  289. </div>
  290. <div class="thumb">
  291. <a href="examples/network/14_dot_language.html">
  292. <img src="img/gallery/network/14_dot_language.png">
  293. <div>dot language</div>
  294. </a>
  295. </div>
  296. <div class="thumb">
  297. <a href="examples/network/15_dot_language_playground.html">
  298. <img src="img/gallery/network/15_dot_language_playground.png">
  299. <div>playground</div>
  300. </a>
  301. </div>
  302. <div class="thumb">
  303. <a href="examples/network/16_dynamic_data.html">
  304. <img src="img/gallery/network/16_dynamic_data.png">
  305. <div>dynamic data</div>
  306. </a>
  307. </div>
  308. <div class="thumb">
  309. <a href="examples/network/17_network_info.html">
  310. <img src="img/gallery/network/17_network_info.png">
  311. <div>network info</div>
  312. </a>
  313. </div>
  314. <div class="thumb">
  315. <a href="examples/network/18_fully_random_nodes_clustering.html">
  316. <img src="img/gallery/network/18_fully_random_nodes_clustering.png">
  317. <div>fully random nodes clustering</div>
  318. </a>
  319. </div>
  320. <div class="thumb">
  321. <a href="examples/network/19_scale_free_graph_clustering.html">
  322. <img src="img/gallery/network/19_scale_free_graph_clustering.png">
  323. <div>scale free graph clustering</div>
  324. </a>
  325. </div>
  326. <div class="thumb">
  327. <a href="examples/network/20_navigation.html">
  328. <img src="img/gallery/network/20_navigation.png">
  329. <div>navigation</div>
  330. </a>
  331. </div>
  332. <div class="thumb">
  333. <a href="examples/network/21_data_manipulation.html">
  334. <img src="img/gallery/network/21_data_manipulation.png">
  335. <div>data manipulation</div>
  336. </a>
  337. </div>
  338. <div class="thumb">
  339. <a href="examples/network/22_les_miserables.html">
  340. <img src="img/gallery/network/22_les_miserables.png">
  341. <div>les miserables</div>
  342. </a>
  343. </div>
  344. <div class="thumb">
  345. <a href="examples/network/23_hierarchical_layout.html">
  346. <img src="img/gallery/network/23_hierarchical_layout.png">
  347. <div>hierarchical layout</div>
  348. </a>
  349. </div>
  350. <div class="thumb">
  351. <a href="examples/network/24_hierarchical_layout_userdefined.html">
  352. <img src="img/gallery/network/24_hierarchical_layout_userdefined.png">
  353. <div>hierarchical layout userdefined</div>
  354. </a>
  355. </div>
  356. <div class="thumb">
  357. <a href="examples/network/25_physics_configuration.html">
  358. <img src="img/gallery/network/25_physics_configuration.png">
  359. <div>physics configuration</div>
  360. </a>
  361. </div>
  362. <div class="thumb">
  363. <a href="examples/network/26_staticSmoothCurves.html">
  364. <img src="img/gallery/network/26_staticSmoothCurves.png">
  365. <div>static smooth curves</div>
  366. </a>
  367. </div>
  368. <div class="thumb">
  369. <a href="examples/network/27_world_cup_network.html">
  370. <img src="img/gallery/network/27_world_cup_network.png">
  371. <div>world cup network</div>
  372. </a>
  373. </div>
  374. <div class="thumb">
  375. <a href="examples/network/28_world_cup_network_performance.html">
  376. <img src="img/gallery/network/28_world_cup_network_performance.png">
  377. <div>world cup network performance</div>
  378. </a>
  379. </div>
  380. <div class="thumb">
  381. <a href="examples/network/29_neighbourhood_highlight.html">
  382. <img src="img/gallery/network/29_neighbourhood_highlight.png">
  383. <div>neighborhood heighlight</div>
  384. </a>
  385. </div>
  386. <div class="thumb">
  387. <a href="examples/network/30_importing_from_gephi.html">
  388. <img src="img/gallery/network/30_importing_from_gephi.png">
  389. <div>improting from gephi</div>
  390. </a>
  391. </div>
  392. <div class="thumb">
  393. <a href="examples/network/graphviz/graphviz_gallery.html">
  394. <img src="img/gallery/network/graphviz_gallery.png">
  395. <div>graphviz gallery</div>
  396. </a>
  397. </div>
  398. </div>
  399. <h3 id="graph2d">Graph2d</h3>
  400. <p>
  401. The Graph2d visualizes bars and lines in time.
  402. </p>
  403. <div class="gallery">
  404. <div class="thumb">
  405. <a href="examples/graph2d/01_basic.html">
  406. <img src="img/gallery/graph2d/01_basic.png">
  407. <div>basic</div>
  408. </a>
  409. </div>
  410. <div class="thumb">
  411. <a href="examples/graph2d/02_bars.html">
  412. <img src="img/gallery/graph2d/02_bars.png">
  413. <div>bars</div>
  414. </a>
  415. </div>
  416. <div class="thumb">
  417. <a href="examples/graph2d/03_groups.html">
  418. <img src="img/gallery/graph2d/03_groups.png">
  419. <div>groups</div>
  420. </a>
  421. </div>
  422. <div class="thumb">
  423. <a href="examples/graph2d/04_rightAxis.html">
  424. <img src="img/gallery/graph2d/04_rightAxis.png">
  425. <div>right axis</div>
  426. </a>
  427. </div>
  428. <div class="thumb">
  429. <a href="examples/graph2d/05_bothAxis.html">
  430. <img src="img/gallery/graph2d/05_bothAxis.png">
  431. <div>both axis</div>
  432. </a>
  433. </div>
  434. <div class="thumb">
  435. <a href="examples/graph2d/06_interpolation.html">
  436. <img src="img/gallery/graph2d/06_interpolation.png">
  437. <div>interpolation</div>
  438. </a>
  439. </div>
  440. <div class="thumb">
  441. <a href="examples/graph2d/07_scrollingAndSorting.html">
  442. <img src="img/gallery/graph2d/07_scrollingAndSorting.png">
  443. <div>scrolling and sorting</div>
  444. </a>
  445. </div>
  446. <div class="thumb">
  447. <a href="examples/graph2d/08_performance.html">
  448. <img src="img/gallery/graph2d/08_performance.png">
  449. <div>performance</div>
  450. </a>
  451. </div>
  452. </div>
  453. <h3 id="graph3d">Graph3d</h3>
  454. <p>
  455. The Graph3d from vis.js visualizes three and four dimensional data.
  456. </p>
  457. <div class="gallery">
  458. <div class="thumb">
  459. <a href="examples/graph3d/example01_basis.html">
  460. <img src="img/gallery/graph3d/example01_basis.png">
  461. <div>basis</div>
  462. </a>
  463. </div>
  464. <div class="thumb">
  465. <a href="examples/graph3d/example02_camera.html">
  466. <img src="img/gallery/graph3d/example02_camera.png">
  467. <div>camera</div>
  468. </a>
  469. </div>
  470. <div class="thumb">
  471. <a href="examples/graph3d/example03_filter.html">
  472. <img src="img/gallery/graph3d/example03_filter.png">
  473. <div>filter</div>
  474. </a>
  475. </div>
  476. <div class="thumb">
  477. <a href="examples/graph3d/example04_animate.html">
  478. <img src="img/gallery/graph3d/example04_animate.png">
  479. <div>animate</div>
  480. </a>
  481. </div>
  482. <div class="thumb">
  483. <a href="examples/graph3d/example05_line.html">
  484. <img src="img/gallery/graph3d/example05_line.png">
  485. <div>line</div>
  486. </a>
  487. </div>
  488. <div class="thumb">
  489. <a href="examples/graph3d/example06_moving_dots.html">
  490. <img src="img/gallery/graph3d/example06_moving_dots.png">
  491. <div>moving dots</div>
  492. </a>
  493. </div>
  494. <div class="thumb">
  495. <a href="examples/graph3d/example07_dot_cloud_colors.html">
  496. <img src="img/gallery/graph3d/example07_dot_cloud_colors.png">
  497. <div>dot cloud colors</div>
  498. </a>
  499. </div>
  500. <div class="thumb">
  501. <a href="examples/graph3d/example08_dot_cloud_size.html">
  502. <img src="img/gallery/graph3d/example08_dot_cloud_size.png">
  503. <div>dot cloud size</div>
  504. </a>
  505. </div>
  506. <div class="thumb">
  507. <a href="examples/graph3d/example09_mobile.html">
  508. <img src="img/gallery/graph3d/example09_mobile.png">
  509. <div>mobile</div>
  510. </a>
  511. </div>
  512. <div class="thumb">
  513. <a href="examples/graph3d/example10_styles.html">
  514. <img src="img/gallery/graph3d/example10_styles.png">
  515. <div>styles</div>
  516. </a>
  517. </div>
  518. <div class="thumb">
  519. <a href="examples/graph3d/example11_tooltips.html">
  520. <img src="img/gallery/graph3d/example11_tooltips.png">
  521. <div>tooltips</div>
  522. </a>
  523. </div>
  524. <div class="thumb">
  525. <a href="examples/graph3d/playground/index.html">
  526. <img src="img/gallery/graph3d/playground.png">
  527. <div>playground</div>
  528. </a>
  529. </div>
  530. </div>
  531. <h2 id="docs">Docs</h2>
  532. <p>
  533. Documentation is available here:
  534. <a href="docs/index.html" target="_blank">Documentation</a>
  535. </p>
  536. <h2 id="license">License</h2>
  537. <p>
  538. Copyright (C) 2010-2014 Almende B.V.
  539. </p>
  540. <p>
  541. Licensed under the Apache License, Version 2.0 (the "License");
  542. you may not use this file except in compliance with the License.
  543. You may obtain a copy of the License at
  544. </p>
  545. <p>
  546. http://www.apache.org/licenses/LICENSE-2.0
  547. </p>
  548. <p>
  549. Unless required by applicable law or agreed to in writing, software
  550. distributed under the License is distributed on an "AS IS" BASIS,
  551. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  552. See the License for the specific language governing permissions and
  553. limitations under the License.
  554. </p>
  555. <a id="forkme" href="https://github.com/almende/vis/" target="_blank">
  556. <img src="img/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" >
  557. </a>
  558. </div>
  559. </body>
  560. </html>