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.

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