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.

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