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.

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