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.

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