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.

294 lines
9.4 KiB

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