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.

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