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.

384 lines
11 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, and Graph.
  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">0.7.3</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;title&gt;Timeline | Basic demo&lt;/title&gt;
  70. &lt;script src="http://visjs.org/dist/vis.js"&gt;&lt;/script&gt;
  71. &lt;link href="http://visjs.org/dist/vis.css" rel="stylesheet" type="text/css" /&gt;
  72. &lt;style type="text/css"&gt;
  73. body, html {
  74. font-family: sans-serif;
  75. }
  76. &lt;/style&gt;
  77. &lt;/head&gt;
  78. &lt;body&gt;
  79. &lt;div id="mytimeline"&gt;&lt;/div&gt;
  80. &lt;script type="text/javascript"&gt;
  81. var container = document.getElementById('mytimeline');
  82. var data = [
  83. {id: 1, content: 'item 1', start: '2013-04-20'},
  84. {id: 2, content: 'item 2', start: '2013-04-14'},
  85. {id: 3, content: 'item 3', start: '2013-04-18'},
  86. {id: 4, content: 'item 4', start: '2013-04-16', end: '2013-04-19'},
  87. {id: 5, content: 'item 5', start: '2013-04-25'},
  88. {id: 6, content: 'item 6', start: '2013-04-27'}
  89. ];
  90. var options = {};
  91. var timeline = new vis.Timeline(container, data, options);
  92. &lt;/script&gt;
  93. &lt;/body&gt;
  94. &lt;/html&gt;
  95. </pre>
  96. <h2 id="gallery">Gallery</h2>
  97. This gallery gives an idea of the features and possibilities of the library.
  98. The source code of the examples can be found in the
  99. <a href="https://github.com/almende/vis/tree/master/examples" target="_blank">examples directory</a>.
  100. <h3 id="timeline">Timeline</h3>
  101. <p>
  102. The timeline from vis.js displays different types of data on a timeline.
  103. </p>
  104. <div class="gallery">
  105. <div class="thumb">
  106. <a href="examples/timeline/01_basic.html">
  107. <img src="img/gallery/timeline/01_basic.png">
  108. <div>basic usage</div>
  109. </a>
  110. </div>
  111. <div class="thumb">
  112. <a href="examples/timeline/02_dataset.html">
  113. <img src="img/gallery/timeline/02_dataset.png">
  114. <div>dataset</div>
  115. </a>
  116. </div>
  117. <div class="thumb">
  118. <a href="examples/timeline/03_much_data.html">
  119. <img src="img/gallery/timeline/03_much_data.png">
  120. <div>much data</div>
  121. </a>
  122. </div>
  123. <div class="thumb">
  124. <a href="examples/timeline/04_html_data.html">
  125. <img src="img/gallery/timeline/04_html_data.png">
  126. <div>html data</div>
  127. </a>
  128. </div>
  129. <div class="thumb">
  130. <a href="examples/timeline/05_groups.html">
  131. <img src="img/gallery/timeline/05_groups.png">
  132. <div>groups</div>
  133. </a>
  134. </div>
  135. <div class="thumb">
  136. <a href="examples/timeline/06_event_listeners.html">
  137. <img src="img/gallery/timeline/06_event_listeners.png">
  138. <div>event listeners</div>
  139. </a>
  140. </div>
  141. <div class="thumb">
  142. <a href="examples/timeline/07_custom_time_bar.html">
  143. <img src="img/gallery/timeline/07_custom_time_bar.png">
  144. <div>custom time bar</div>
  145. </a>
  146. </div>
  147. <div class="thumb">
  148. <a href="examples/timeline/08_edit_items.html">
  149. <img src="img/gallery/timeline/08_edit_items.png">
  150. <div>edit items</div>
  151. </a>
  152. </div>
  153. </div>
  154. <h3 id="graph">Graph</h3>
  155. <p>
  156. The graph from vis.js visualizes graphs and networks with
  157. customizable styles.
  158. </p>
  159. <div class="gallery">
  160. <div class="thumb">
  161. <a href="examples/graph/01_basic_usage.html">
  162. <img src="img/gallery/graph/01_basic_usage.png">
  163. <div>basic usage</div>
  164. </a>
  165. </div>
  166. <div class="thumb">
  167. <a href="examples/graph/02_random_nodes.html">
  168. <img src="img/gallery/graph/02_random_nodes.png">
  169. <div>random nodes</div>
  170. </a>
  171. </div>
  172. <div class="thumb">
  173. <a href="examples/graph/03_images.html">
  174. <img src="img/gallery/graph/03_images.png">
  175. <div>images</div>
  176. </a>
  177. </div>
  178. <div class="thumb">
  179. <a href="examples/graph/04_shapes.html">
  180. <img src="img/gallery/graph/04_shapes.png">
  181. <div>shapes</div>
  182. </a>
  183. </div>
  184. <div class="thumb">
  185. <a href="examples/graph/05_social_network.html">
  186. <img src="img/gallery/graph/05_social_network.png">
  187. <div>social network</div>
  188. </a>
  189. </div>
  190. <div class="thumb">
  191. <a href="examples/graph/06_groups.html">
  192. <img src="img/gallery/graph/06_groups.png">
  193. <div>groups</div>
  194. </a>
  195. </div>
  196. <div class="thumb">
  197. <a href="examples/graph/07_selections.html">
  198. <img src="img/gallery/graph/07_selections.png">
  199. <div>selections</div>
  200. </a>
  201. </div>
  202. <div class="thumb">
  203. <a href="examples/graph/08_mobile_friendly.html">
  204. <img src="img/gallery/graph/08_mobile_friendly.png">
  205. <div>mobile friendly</div>
  206. </a>
  207. </div>
  208. <div class="thumb">
  209. <a href="examples/graph/09_sizing.html">
  210. <img src="img/gallery/graph/09_sizing.png">
  211. <div>sizing</div>
  212. </a>
  213. </div>
  214. <div class="thumb">
  215. <a href="examples/graph/10_multiline_text.html">
  216. <img src="img/gallery/graph/10_multiline_text.png">
  217. <div>multiline text</div>
  218. </a>
  219. </div>
  220. <div class="thumb">
  221. <a href="examples/graph/11_custom_style.html">
  222. <img src="img/gallery/graph/11_custom_style.png">
  223. <div>custom style</div>
  224. </a>
  225. </div>
  226. <div class="thumb">
  227. <a href="examples/graph/12_scalable_images.html">
  228. <img src="img/gallery/graph/12_scalable_images.png">
  229. <div>scalable images</div>
  230. </a>
  231. </div>
  232. <div class="thumb">
  233. <a href="examples/graph/13_dashed_lines.html">
  234. <img src="img/gallery/graph/13_dashed_lines.png">
  235. <div>dashed lines</div>
  236. </a>
  237. </div>
  238. <div class="thumb">
  239. <a href="examples/graph/14_dot_language.html">
  240. <img src="img/gallery/graph/14_dot_language.png">
  241. <div>dot language</div>
  242. </a>
  243. </div>
  244. <div class="thumb">
  245. <a href="examples/graph/15_dot_language_playground.html">
  246. <img src="img/gallery/graph/15_dot_language_playground.png">
  247. <div>playground</div>
  248. </a>
  249. </div>
  250. <div class="thumb">
  251. <a href="examples/graph/16_dynamic_data.html">
  252. <img src="img/gallery/graph/16_dynamic_data.png">
  253. <div>dynamic data</div>
  254. </a>
  255. </div>
  256. <div class="thumb">
  257. <a href="examples/graph/17_network_info.html">
  258. <img src="img/gallery/graph/17_network_info.png">
  259. <div>network info</div>
  260. </a>
  261. </div>
  262. <div class="thumb">
  263. <a href="examples/graph/18_fully_random_nodes_clustering.html">
  264. <img src="img/gallery/graph/18_fully_random_nodes_clustering.png">
  265. <div>fully random nodes clustering</div>
  266. </a>
  267. </div>
  268. <div class="thumb">
  269. <a href="examples/graph/19_scale_free_graph_clustering.html">
  270. <img src="img/gallery/graph/19_scale_free_graph_clustering.png">
  271. <div>scale free graph clustering</div>
  272. </a>
  273. </div>
  274. <div class="thumb">
  275. <a href="examples/graph/20_navigation.html">
  276. <img src="img/gallery/graph/20_navigation.png">
  277. <div>navigation</div>
  278. </a>
  279. </div>
  280. <div class="thumb">
  281. <a href="examples/graph/21_data_manipulation.html">
  282. <img src="img/gallery/graph/21_data_manipulation.png">
  283. <div>data manipulation</div>
  284. </a>
  285. </div>
  286. <div class="thumb">
  287. <a href="examples/graph/22_les_miserables.html">
  288. <img src="img/gallery/graph/22_les_miserables.png">
  289. <div>les miserables</div>
  290. </a>
  291. </div>
  292. <div class="thumb">
  293. <a href="examples/graph/23_hierarchical_layout.html">
  294. <img src="img/gallery/graph/23_hierarchical_layout.png">
  295. <div>hierarchical layout</div>
  296. </a>
  297. </div>
  298. <div class="thumb">
  299. <a href="examples/graph/24_hierarchical_layout_userdefined.html">
  300. <img src="img/gallery/graph/24_hierarchical_layout_predefined.png">
  301. <div>hierarchical layout predefined</div>
  302. </a>
  303. </div>
  304. <div class="thumb">
  305. <a href="examples/graph/25_physics_configuration.html">
  306. <img src="img/gallery/graph/25_physics_configuration.png">
  307. <div>physics configuration</div>
  308. </a>
  309. </div>
  310. <div class="thumb">
  311. <a href="examples/graph/graphviz/graphviz_gallery.html">
  312. <img src="img/gallery/graph/graphviz_gallery.png">
  313. <div>graphviz gallery</div>
  314. </a>
  315. </div>
  316. </div>
  317. <h2 id="docs">Docs</h2>
  318. <p>
  319. Documentation is available here:
  320. <a href="docs/index.html" target="_blank">Documentation</a>
  321. </p>
  322. <h2 id="license">License</h2>
  323. <p>
  324. Copyright (C) 2010-2014 Almende B.V.
  325. </p>
  326. <p>
  327. Licensed under the Apache License, Version 2.0 (the "License");
  328. you may not use this file except in compliance with the License.
  329. You may obtain a copy of the License at
  330. </p>
  331. <p>
  332. http://www.apache.org/licenses/LICENSE-2.0
  333. </p>
  334. <p>
  335. Unless required by applicable law or agreed to in writing, software
  336. distributed under the License is distributed on an "AS IS" BASIS,
  337. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  338. See the License for the specific language governing permissions and
  339. limitations under the License.
  340. </p>
  341. <a id="forkme" href="https://github.com/almende/vis/" target="_blank">
  342. <img src="img/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" >
  343. </a>
  344. </div>
  345. </body>
  346. </html>