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.

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