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.

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