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.

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