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.

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