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.

513 lines
15 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, Graph, 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">1.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 data
  78. var data = [
  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>
  200. <h3 id="graph">Graph</h3>
  201. <p>
  202. The graph from vis.js visualizes graphs and networks with
  203. customizable styles.
  204. </p>
  205. <div class="gallery">
  206. <div class="thumb">
  207. <a href="examples/graph/01_basic_usage.html">
  208. <img src="img/gallery/graph/01_basic_usage.png">
  209. <div>basic usage</div>
  210. </a>
  211. </div>
  212. <div class="thumb">
  213. <a href="examples/graph/02_random_nodes.html">
  214. <img src="img/gallery/graph/02_random_nodes.png">
  215. <div>random nodes</div>
  216. </a>
  217. </div>
  218. <div class="thumb">
  219. <a href="examples/graph/03_images.html">
  220. <img src="img/gallery/graph/03_images.png">
  221. <div>images</div>
  222. </a>
  223. </div>
  224. <div class="thumb">
  225. <a href="examples/graph/04_shapes.html">
  226. <img src="img/gallery/graph/04_shapes.png">
  227. <div>shapes</div>
  228. </a>
  229. </div>
  230. <div class="thumb">
  231. <a href="examples/graph/05_social_network.html">
  232. <img src="img/gallery/graph/05_social_network.png">
  233. <div>social network</div>
  234. </a>
  235. </div>
  236. <div class="thumb">
  237. <a href="examples/graph/06_groups.html">
  238. <img src="img/gallery/graph/06_groups.png">
  239. <div>groups</div>
  240. </a>
  241. </div>
  242. <div class="thumb">
  243. <a href="examples/graph/07_selections.html">
  244. <img src="img/gallery/graph/07_selections.png">
  245. <div>selections</div>
  246. </a>
  247. </div>
  248. <div class="thumb">
  249. <a href="examples/graph/08_mobile_friendly.html">
  250. <img src="img/gallery/graph/08_mobile_friendly.png">
  251. <div>mobile friendly</div>
  252. </a>
  253. </div>
  254. <div class="thumb">
  255. <a href="examples/graph/09_sizing.html">
  256. <img src="img/gallery/graph/09_sizing.png">
  257. <div>sizing</div>
  258. </a>
  259. </div>
  260. <div class="thumb">
  261. <a href="examples/graph/10_multiline_text.html">
  262. <img src="img/gallery/graph/10_multiline_text.png">
  263. <div>multiline text</div>
  264. </a>
  265. </div>
  266. <div class="thumb">
  267. <a href="examples/graph/11_custom_style.html">
  268. <img src="img/gallery/graph/11_custom_style.png">
  269. <div>custom style</div>
  270. </a>
  271. </div>
  272. <div class="thumb">
  273. <a href="examples/graph/12_scalable_images.html">
  274. <img src="img/gallery/graph/12_scalable_images.png">
  275. <div>scalable images</div>
  276. </a>
  277. </div>
  278. <div class="thumb">
  279. <a href="examples/graph/13_dashed_lines.html">
  280. <img src="img/gallery/graph/13_dashed_lines.png">
  281. <div>dashed lines</div>
  282. </a>
  283. </div>
  284. <div class="thumb">
  285. <a href="examples/graph/14_dot_language.html">
  286. <img src="img/gallery/graph/14_dot_language.png">
  287. <div>dot language</div>
  288. </a>
  289. </div>
  290. <div class="thumb">
  291. <a href="examples/graph/15_dot_language_playground.html">
  292. <img src="img/gallery/graph/15_dot_language_playground.png">
  293. <div>playground</div>
  294. </a>
  295. </div>
  296. <div class="thumb">
  297. <a href="examples/graph/16_dynamic_data.html">
  298. <img src="img/gallery/graph/16_dynamic_data.png">
  299. <div>dynamic data</div>
  300. </a>
  301. </div>
  302. <div class="thumb">
  303. <a href="examples/graph/17_network_info.html">
  304. <img src="img/gallery/graph/17_network_info.png">
  305. <div>network info</div>
  306. </a>
  307. </div>
  308. <div class="thumb">
  309. <a href="examples/graph/18_fully_random_nodes_clustering.html">
  310. <img src="img/gallery/graph/18_fully_random_nodes_clustering.png">
  311. <div>fully random nodes clustering</div>
  312. </a>
  313. </div>
  314. <div class="thumb">
  315. <a href="examples/graph/19_scale_free_graph_clustering.html">
  316. <img src="img/gallery/graph/19_scale_free_graph_clustering.png">
  317. <div>scale free graph clustering</div>
  318. </a>
  319. </div>
  320. <div class="thumb">
  321. <a href="examples/graph/20_navigation.html">
  322. <img src="img/gallery/graph/20_navigation.png">
  323. <div>navigation</div>
  324. </a>
  325. </div>
  326. <div class="thumb">
  327. <a href="examples/graph/21_data_manipulation.html">
  328. <img src="img/gallery/graph/21_data_manipulation.png">
  329. <div>data manipulation</div>
  330. </a>
  331. </div>
  332. <div class="thumb">
  333. <a href="examples/graph/22_les_miserables.html">
  334. <img src="img/gallery/graph/22_les_miserables.png">
  335. <div>les miserables</div>
  336. </a>
  337. </div>
  338. <div class="thumb">
  339. <a href="examples/graph/23_hierarchical_layout.html">
  340. <img src="img/gallery/graph/23_hierarchical_layout.png">
  341. <div>hierarchical layout</div>
  342. </a>
  343. </div>
  344. <div class="thumb">
  345. <a href="examples/graph/24_hierarchical_layout_userdefined.html">
  346. <img src="img/gallery/graph/24_hierarchical_layout_predefined.png">
  347. <div>hierarchical layout predefined</div>
  348. </a>
  349. </div>
  350. <div class="thumb">
  351. <a href="examples/graph/25_physics_configuration.html">
  352. <img src="img/gallery/graph/25_physics_configuration.png">
  353. <div>physics configuration</div>
  354. </a>
  355. </div>
  356. <div class="thumb">
  357. <a href="examples/graph/graphviz/graphviz_gallery.html">
  358. <img src="img/gallery/graph/graphviz_gallery.png">
  359. <div>graphviz gallery</div>
  360. </a>
  361. </div>
  362. </div>
  363. <h3 id="graph3d">Graph3d</h3>
  364. <p>
  365. The Graph3d from vis.js visualizes three and four dimensional data.
  366. </p>
  367. <div class="gallery">
  368. <div class="thumb">
  369. <a href="examples/graph3d/example01_basis.html">
  370. <img src="img/gallery/graph3d/example01_basis.png">
  371. <div>basis</div>
  372. </a>
  373. </div>
  374. <div class="thumb">
  375. <a href="examples/graph3d/example02_camera.html">
  376. <img src="img/gallery/graph3d/example02_camera.png">
  377. <div>camera</div>
  378. </a>
  379. </div>
  380. <div class="thumb">
  381. <a href="examples/graph3d/example03_filter.html">
  382. <img src="img/gallery/graph3d/example03_filter.png">
  383. <div>filter</div>
  384. </a>
  385. </div>
  386. <div class="thumb">
  387. <a href="examples/graph3d/example04_animate.html">
  388. <img src="img/gallery/graph3d/example04_animate.png">
  389. <div>animate</div>
  390. </a>
  391. </div>
  392. <div class="thumb">
  393. <a href="examples/graph3d/example05_line.html">
  394. <img src="img/gallery/graph3d/example05_line.png">
  395. <div>line</div>
  396. </a>
  397. </div>
  398. <div class="thumb">
  399. <a href="examples/graph3d/example06_moving_dots.html">
  400. <img src="img/gallery/graph3d/example06_moving_dots.png">
  401. <div>moving dots</div>
  402. </a>
  403. </div>
  404. <div class="thumb">
  405. <a href="examples/graph3d/example07_dot_cloud_colors.html">
  406. <img src="img/gallery/graph3d/example07_dot_cloud_colors.png">
  407. <div>dot cloud colors</div>
  408. </a>
  409. </div>
  410. <div class="thumb">
  411. <a href="examples/graph3d/example08_dot_cloud_size.html">
  412. <img src="img/gallery/graph3d/example08_dot_cloud_size.png">
  413. <div>dot cloud size</div>
  414. </a>
  415. </div>
  416. <div class="thumb">
  417. <a href="examples/graph3d/example09_mobile.html">
  418. <img src="img/gallery/graph3d/example09_mobile.png">
  419. <div>mobile</div>
  420. </a>
  421. </div>
  422. <div class="thumb">
  423. <a href="examples/graph3d/example10_styles.html">
  424. <img src="img/gallery/graph3d/example10_styles.png">
  425. <div>styles</div>
  426. </a>
  427. </div>
  428. <div class="thumb">
  429. <a href="examples/graph3d/example11_tooltips.html">
  430. <img src="img/gallery/graph3d/example11_tooltips.png">
  431. <div>tooltips</div>
  432. </a>
  433. </div>
  434. <div class="thumb">
  435. <a href="examples/graph3d/playground/index.html">
  436. <img src="img/gallery/graph3d/playground.png">
  437. <div>playground</div>
  438. </a>
  439. </div>
  440. </div>
  441. <h2 id="docs">Docs</h2>
  442. <p>
  443. Documentation is available here:
  444. <a href="docs/index.html" target="_blank">Documentation</a>
  445. </p>
  446. <h2 id="license">License</h2>
  447. <p>
  448. Copyright (C) 2010-2014 Almende B.V.
  449. </p>
  450. <p>
  451. Licensed under the Apache License, Version 2.0 (the "License");
  452. you may not use this file except in compliance with the License.
  453. You may obtain a copy of the License at
  454. </p>
  455. <p>
  456. http://www.apache.org/licenses/LICENSE-2.0
  457. </p>
  458. <p>
  459. Unless required by applicable law or agreed to in writing, software
  460. distributed under the License is distributed on an "AS IS" BASIS,
  461. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  462. See the License for the specific language governing permissions and
  463. limitations under the License.
  464. </p>
  465. <a id="forkme" href="https://github.com/almende/vis/" target="_blank">
  466. <img src="img/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" >
  467. </a>
  468. </div>
  469. </body>
  470. </html>