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.

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