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.

496 lines
17 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
11 years ago
  1. # vis.js history
  2. http://visjs.org
  3. ## not yet released, version 3.2.1
  4. ### Timeline
  5. - Added localization support.
  6. - Implemented option `clickToUse`.
  7. - Implemented function `focus(id)` to center a specific item (or multiple items)
  8. on screen.
  9. - Implemented an option `focus` for `setSelection(ids, options)`, to immediately
  10. focus selected nodes.
  11. - Implemented function `moveTo(time, options)`.
  12. - Implemented animated range change for functions `fit`, `focus`, `setSelection`,
  13. and `setWindow`.
  14. - Implemented functions `setCurrentTime(date)` and `getCurrentTime()`.
  15. - Implemented a new callback function `onMoving(item, callback)`.
  16. - Implemented support for option `align` for range items.
  17. - Fixed the `change` event sometimes being fired twice on IE10.
  18. - Fixed canceling moving an item to another group did not move the item
  19. back to the original group.
  20. - Fixed the `change` event sometimes being fired twice on IE10.
  21. - Fixed canceling moving an item to another group did not move the item
  22. back to the original group.
  23. ### Network
  24. - A fix in reading group properties for a node.
  25. - Fixed physics solving stopping when a support node was not moving.
  26. - Implemented localization support.
  27. - Implemented option `clickToUse`.
  28. - Improved the `'stabilized'` event, it's now firing after every stabilization
  29. with iteration count as parameter.
  30. - Fixed page scroll event not being blocked when moving around in Network
  31. using arrow keys.
  32. - Fixed an initial rendering before the graph has been stabilized.
  33. - Fixed bug where loading hierarchical data after initialization crashed network.
  34. - Added different layout method to the hierarchical system based on the direction of the edges.
  35. ### Graph2D
  36. - Implemented option `handleOverlap` to support overlap, sideBySide and stack.
  37. - Implemented two examples showing the `handleOverlap` functionality.
  38. - Implemented `customRange` for the Y axis and an example showing how it works.
  39. - Implemented localization support.
  40. - Implemented option `clickToUse`.
  41. - Implemented functions `setCurrentTime(date)` and `getCurrentTime()`.
  42. - Implemented function `moveTo(time, options)`.
  43. - Fixed bugs.
  44. - Added groups.visibility functionality and an example showing how it works.
  45. ## 2014-08-14, version 3.2.0
  46. ### General
  47. - Refactored Timeline and Graph2d to use the same core.
  48. ### Graph2D
  49. - Added `visible` property to the groups.
  50. - Added `getLegend()` method.
  51. - Added `isGroupVisible()` method.
  52. - Fixed empty group bug.
  53. - Added `fit()` and `getItemRange()` methods.
  54. ### Timeline
  55. - Fixed items in groups sometimes being displayed but not positioned correctly.
  56. - Fixed a group "null" being displayed in IE when not using groups.
  57. ### Network
  58. - Fixed mass = 0 for nodes.
  59. - Revamped the options system. You can globally set options (network.setOptions) to update settings of nodes and edges that have not been specifically defined by the individual nodes and edges.
  60. - Disabled inheritColor when color information is set on an edge.
  61. - Tweaked examples.
  62. - Removed the global length property for edges. The edgelength is part of the physics system. Therefore, you have to change the springLength of the physics system to change the edge length. Individual edge lengths can still be defined.
  63. - Removed global edge length definition form examples.
  64. - Removed onclick and onrelease for navigation and switched to Hammer.js (fixing touchscreen interaction with navigation).
  65. - Fixed error on adding an edge without having created the nodes it should be connected to (in the case of dynamic smooth curves).
  66. ## 2014-07-22, version 3.1.0
  67. ### General
  68. - Refactored the code to commonjs modules, which are browserifyable. This allows
  69. to create custom builds.
  70. ### Timeline
  71. - Implemented function `getVisibleItems()`, which returns the items visible
  72. in the current window.
  73. - Added options `margin.item.horizontal` and `margin.item.vertical`, which
  74. allows to specify different margins horizontally/vertically.
  75. - Removed check for number of arguments in callbacks `onAdd`, `onUpdate`,
  76. `onRemove`, and `onMove`.
  77. - Fixed items in groups sometimes being displayed but not positioned correctly.
  78. - Fixed range where the `end` of the first is equal to the `start` of the second
  79. sometimes being stacked instead of put besides each other when `item.margin=0`
  80. due to round-off errors.
  81. ### Network (formerly named Graph)
  82. - Expanded smoothCurves options for improved support for large clusters.
  83. - Added multiple types of smoothCurve drawing for greatly improved performance.
  84. - Option for inherited edge colors from connected nodes.
  85. - Option to disable the drawing of nodes or edges on drag.
  86. - Fixed support nodes not being cleaned up if edges are removed.
  87. - Improved edge selection detection for long smooth curves.
  88. - Fixed dot radius bug.
  89. - Updated max velocity of nodes to three times it's original value.
  90. - Made "stabilized" event fire every time the network stabilizes.
  91. - Fixed drift in dragging nodes while zooming.
  92. - Fixed recursively constructing of hierarchical layouts.
  93. - Added borderWidth option for nodes.
  94. - Implemented new Hierarchical view solver.
  95. - Fixed an issue with selecting nodes when the web page is scrolled down.
  96. - Added Gephi JSON parser
  97. - Added Neighbour Highlight example
  98. - Added Import From Gephi example
  99. - Enabled color parsing for nodes when supplied with rgb(xxx,xxx,xxx) value.
  100. ### DataSet
  101. - Added .get() returnType option to return as JSON object, Array or Google
  102. DataTable.
  103. ## 2014-07-07, version 3.0.0
  104. ### Timeline
  105. - Implemented support for displaying a `title` for both items and groups.
  106. - Fixed auto detected item type being preferred over the global item `type`.
  107. - Throws an error when constructing without new keyword.
  108. - Removed the 'rangeoverflow' item type. Instead, one can use a regular range
  109. and change css styling of the item contents to:
  110. .vis.timeline .item.range .content {
  111. overflow: visible;
  112. }
  113. - Fixed the height of background and foreground panels of groups.
  114. - Fixed ranges in the Timeline sometimes overlapping when dragging the Timeline.
  115. - Fixed `DataView` not working in Timeline.
  116. ### Network (formerly named Graph)
  117. - Renamed `Graph` to `Network` to prevent confusion with the visualizations
  118. `Graph2d` and `Graph3d`.
  119. - Renamed option `dragGraph` to `dragNetwork`.
  120. - Now throws an error when constructing without new keyword.
  121. - Added pull request from Vukk, user can now define the edge width multiplier
  122. when selected.
  123. - Fixed `graph.storePositions()`.
  124. - Extended Selection API with `selectNodes` and `selectEdges`, deprecating
  125. `setSelection`.
  126. - Fixed multiline labels.
  127. - Changed hierarchical physics solver and updated docs.
  128. ### Graph2d
  129. - Added first iteration of the Graph2d.
  130. ### Graph3d
  131. - Now throws an error when constructing without new keyword.
  132. ## 2014-06-19, version 2.0.0
  133. ### Timeline
  134. - Implemented function `destroy` to neatly cleanup a Timeline.
  135. - Implemented support for dragging the timeline contents vertically.
  136. - Implemented options `zoomable` and `moveable`.
  137. - Changed default value of option `showCurrentTime` to true.
  138. - Internal refactoring and simplification of the code.
  139. - Fixed property `className` of groups not being applied to related contents and
  140. background elements, and not being updated once applied.
  141. ### Graph
  142. - Reduced the timestep a little for smoother animations.
  143. - Fixed dataManipulation.initiallyVisible functionality (thanks theGrue).
  144. - Forced typecast of fontSize to Number.
  145. - Added editing of edges using the data manipulation toolkit.
  146. ### DataSet
  147. - Renamed option `convert` to `type`.
  148. ## 2014-06-06, version 1.1.0
  149. ### Timeline
  150. - Select event now triggers repeatedly when selecting an already selected item.
  151. - Renamed `Timeline.repaint()` to `Timeline.redraw()` to be consistent with
  152. the other visualisations of vis.js.
  153. - Fixed `Timeline.clear()` not resetting a configured `options.start` and
  154. `options.end`.
  155. ### Graph
  156. - Fixed error with zero nodes with hierarchical layout.
  157. - Added focusOnNode function.
  158. - Added hover option.
  159. - Added dragNodes option. Renamed movebale to dragGraph option.
  160. - Added hover events (hoverNode, blurNode).
  161. ### Graph3D
  162. - Ported Graph3D from Chap Links Library.
  163. ## 2014-05-28, version 1.0.2
  164. ### Timeline
  165. - Implemented option `minHeight`, similar to option `maxHeight`.
  166. - Implemented a method `clear([what])`, to clear items, groups, and configuration
  167. of a Timeline instance.
  168. - Added function `repaint()` to force a repaint of the Timeline.
  169. - Some tweaks in snapping dragged items to nice dates.
  170. - Made the instance of moment.js packaged with vis.js accessibly via `vis.moment`.
  171. - A newly created item is initialized with `end` property when option `type`
  172. is `"range"` or `"rangeoverflow"`.
  173. - Fixed a bug in replacing the DataSet of groups via `Timeline.setGroups(groups)`.
  174. - Fixed a bug when rendering the Timeline inside a hidden container.
  175. - Fixed axis scale being determined wrongly for a second Timeline in a single page.
  176. ### Graph
  177. - Added zoomable and moveable options.
  178. - Changes setOptions to avoid resetting view.
  179. - Interchanged canvasToDOM and DOMtoCanvas to correspond with the docs.
  180. ## 2014-05-09, version 1.0.1
  181. ### Timeline
  182. - Fixed width of items with type `rangeoverflow`.
  183. - Fixed a bug wrongly rendering invisible items after updating them.
  184. ### Graph
  185. - Added coordinate conversion from DOM to Canvas.
  186. - Fixed bug where the graph stopped animation after settling in playing with physics.
  187. - Fixed bug where hierarchical physics properties were not handled.
  188. - Added events for change of view and zooming.
  189. ## 2014-05-02, version 1.0.0
  190. ### Timeline
  191. - Large refactoring of the Timeline, simplifying the code.
  192. - Great performance improvements.
  193. - Improved layout of box-items inside groups.
  194. - Items can now be dragged from one group to another.
  195. - Implemented option `stack` to enable/disable stacking of items.
  196. - Implemented function `fit`, which sets the Timeline window such that it fits
  197. all items.
  198. - Option `editable` can now be used to enable/disable individual manipulation
  199. actions (`add`, `updateTime`, `updateGroup`, `remove`).
  200. - Function `setWindow` now accepts an object with properties `start` and `end`.
  201. - Fixed option `autoResize` forcing a repaint of the Timeline with every check
  202. rather than when the Timeline is actually resized.
  203. - Fixed `select` event fired repeatedly when clicking an empty place on the
  204. Timeline, deselecting selected items).
  205. - Fixed initial visible window in case items exceed `zoomMax`. Thanks @Remper.
  206. - Fixed an offset in newly created items when using groups.
  207. - Fixed height of a group not reckoning with the height of the group label.
  208. - Option `order` is now deprecated. This was needed for performance improvements.
  209. - More examples added.
  210. - Minor bug fixes.
  211. ### Graph
  212. - Added recalculate hierarchical layout to update node event.
  213. - Added arrowScaleFactor to scale the arrows on the edges.
  214. ### DataSet
  215. - A DataSet can now be constructed with initial data, like
  216. `new DataSet(data, options)`.
  217. ## 2014-04-18, version 0.7.4
  218. ### Graph
  219. - Fixed IE9 bug.
  220. - Style fixes.
  221. - Minor bug fixes.
  222. ## 2014-04-16, version 0.7.3
  223. ### Graph
  224. - Fixed color bug.
  225. - Added pull requests from kannonboy and vierja: tooltip styling, label fill
  226. color.
  227. ## 2014-04-09, version 0.7.2
  228. ### Graph
  229. - Fixed edge select bug.
  230. - Fixed zoom bug on empty initialization.
  231. ## 2014-03-27, version 0.7.1
  232. ### Graph
  233. - Fixed edge color bug.
  234. - Fixed select event bug.
  235. - Clarified docs, stressing importance of css inclusion for correct display of
  236. navigation an manipulation icons.
  237. - Improved and expanded playing with physics (configurePhysics option).
  238. - Added highlights to navigation icons if the corresponding key is pressed.
  239. - Added freezeForStabilization option to improve stabilization with cached
  240. positions.
  241. ## 2014-03-07, version 0.7.0
  242. ### Graph
  243. - Changed navigation CSS. Icons are now always correctly positioned.
  244. - Added stabilizationIterations option to graph.
  245. - Added storePosition() method to save the XY positions of nodes in the DataSet.
  246. - Separated allowedToMove into allowedToMoveX and allowedToMoveY. This is
  247. required for initializing nodes from hierarchical layouts after
  248. storePosition().
  249. - Added color options for the edges.
  250. ## 2014-03-06, version 0.6.1
  251. ### Graph
  252. - Bugfix graphviz examples.
  253. - Bugfix labels position for smooth curves.
  254. - Tweaked graphviz example physics.
  255. - Updated physics documentation to stress importance of configurePhysics.
  256. ### Timeline
  257. - Fixed a bug with options `margin.axis` and `margin.item` being ignored when
  258. setting them to zero.
  259. - Some clarifications in the documentation.
  260. ## 2014-03-05, version 0.6.0
  261. ### Graph
  262. - Added Physics Configuration option. This makes tweaking the physics system to
  263. suit your needs easier.
  264. - Click and doubleClick events.
  265. - Initial zoom bugfix.
  266. - Directions for Hierarchical layout.
  267. - Refactoring and bugfixes.
  268. ## 2014-02-20, version 0.5.1
  269. - Fixed broken bower module.
  270. ## 2014-02-20, version 0.5.0
  271. ### Timeline
  272. - Editable Items: drag items, add new items, update items, and remove items.
  273. - Implemented options `selectable`, `editable`.
  274. - Added events `timechange` and `timechanged` when dragging the custom time bar.
  275. - Multiple items can be selected using ctrl+click or shift+click.
  276. - Implemented functions `setWindow(start, end)` and `getWindow()`.
  277. - Fixed scroll to zoom not working on IE in standards mode.
  278. ### Graph
  279. - Editable nodes and edges: create, update, and remove them.
  280. - Support for smooth, curved edges (on by default).
  281. - Performance improvements.
  282. - Fixed scroll to zoom not working on IE in standards mode.
  283. - Added hierarchical layout option.
  284. - Overhauled physics system, now using Barnes-Hut simulation by default. Great
  285. performance gains.
  286. - Modified clustering system to give better results.
  287. - Adaptive performance system to increase visual performance (60fps target).
  288. ### DataSet
  289. - Renamed functions `subscribe` and `unsubscribe` to `on` and `off` respectively.
  290. ## 2014-01-31, version 0.4.0
  291. ### Timeline
  292. - Implemented functions `on` and `off` to create event listeners for events
  293. `rangechange`, `rangechanged`, and `select`.
  294. - Implemented function `select` to get and set the selected items.
  295. - Items can be selected by clicking them, muti-select by holding them.
  296. - Fixed non working `start` and `end` options.
  297. ### Graph
  298. - Fixed longstanding bug in the force calculation, increasing simulation
  299. stability and fluidity.
  300. - Reworked the calculation of the Graph, increasing performance for larger
  301. datasets (up to 10x!).
  302. - Support for automatic clustering in Graph to handle large (>50000) datasets
  303. without losing performance.
  304. - Added automatic initial zooming to Graph, to more easily view large amounts
  305. of data.
  306. - Added local declustering to Graph, freezing the simulation of nodes outside
  307. of the cluster.
  308. - Added support for key-bindings by including mouseTrap in Graph.
  309. - Added navigation controls.
  310. - Added keyboard navigation.
  311. - Implemented functions `on` and `off` to create event listeners for event
  312. `select`.
  313. ## 2014-01-14, version 0.3.0
  314. - Moved the generated library to folder `./dist`
  315. - Css stylesheet must be loaded explicitly now.
  316. - Implemented options `showCurrentTime` and `showCustomTime`. Thanks @fi0dor.
  317. - Implemented touch support for Timeline.
  318. - Fixed broken Timeline options `min` and `max`.
  319. - Fixed not being able to load vis.js in node.js.
  320. ## 2013-09-20, version 0.2.0
  321. - Implemented full touch support for Graph.
  322. - Fixed initial empty range in the Timeline in case of a single item.
  323. - Fixed field `className` not working for items.
  324. ## 2013-06-20, version 0.1.0
  325. - Added support for DataSet to Graph. Graph now uses an id based set of nodes
  326. and edges instead of a row based array internally. Methods getSelection and
  327. setSelection of Graph now accept a list with ids instead of rows.
  328. - Graph is now robust against edges pointing to non-existing nodes, which
  329. can occur easily while dynamically adding/removing nodes and edges.
  330. - Implemented basic support for groups in the Timeline.
  331. - Added documentation on DataSet and DataView.
  332. - Fixed selection of nodes in a Graph when the containing web page is scrolled.
  333. - Improved date conversion.
  334. - Renamed DataSet option `fieldTypes` to `convert`.
  335. - Renamed function `vis.util.cast` to `vis.util.convert`.
  336. ## 2013-06-07, version 0.0.9
  337. - First working version of the Graph imported from the old library.
  338. - Documentation added for both Timeline and Graph.
  339. ## 2013-05-03, version 0.0.8
  340. - Performance improvements: only visible items are rendered.
  341. - Minor bug fixes and improvements.
  342. ## 2013-04-25, version 0.0.7
  343. - Sanitized the published packages on npm and bower.
  344. ## 2013-04-25, version 0.0.6
  345. - Css is now packaged in the javascript file, and automatically loaded.
  346. - The library uses node style dependency management for modules now, used
  347. with Browserify.
  348. ## 2013-04-16, version 0.0.5
  349. - First working version of the Timeline.
  350. - Website created.