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.

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