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.

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