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.

318 lines
10 KiB

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