vis v4.0.0 Release Notes

Release Date: 2015-05-22 // almost 9 years ago
  • General

    • ๐Ÿ”„ Changed the build scripts to include a transpilation of ES6 to ES5 (using http://babel.org), so we can use ES6 features in the vis.js code. When creating a custom bundle using browserify, one now needs to add a transform step using babelify, this is described in README.md.

    Timeline

    • โ†” Integrated an option configurator and validator.
    • 0๏ธโƒฃ Implemented option multiselect, which is false by default.
    • โž• Added method setData({groups: groups, items: items}).
    • ๐Ÿ›  Fixed range items not being displayed smaller than 10 pixels (twice the padding). In order to have overflowing text, one should now apply css style .vis.timeline .item.range { overflow: visible; } instead of .vis.timeline .item.range .content { overflow: visible; }. See example 18_range_overflow.html.
    • ๐Ÿ›  Fixed invalid css names for time axis grid, renamed hours class names from 4-8h to h4-h8.
    • ๐Ÿ—„ Deprecated option showCustomTime. Use method addCustomTime() instead.
    • ๐Ÿ—„ Deprecated event finishedRedraw as it's redundant.
    • ๐Ÿ“‡ Renamed option animate to animation, and changed it to be either a boolean or an object {duration: number, easingFunction: string}.
    • ๐Ÿ›  Fixed #831: items losing selection when their type changed.

    Graph2d

    • ๐Ÿ†• New option structure.
    • ๐Ÿ“„ Cleaned up docs.
    • ๐Ÿ›  Fixed #628: stacking order.
    • ๐Ÿ›  Fixed #624: sorting order.
    • ๐Ÿ›  Fixed #616: stacking with negative bars.
    • ๐Ÿ›  Fixed #728: alignment issues.
    • ๐Ÿ›  Fixed #716: Height of graph 2px too large when configuring a fixed height.

    Network

    The network has been completely rewritten. The new modular setup using ES6 classes makes it future proof for maintainability, extendability and clarity. A summary of new features:

    • ๐Ÿ†• New examples, categorized by topic.
    • ๐Ÿ†• New docs.
    • ๐Ÿ†• New option structure, adhering to the modular setup on the backend.
    • ๐Ÿ†• New events for user interaction.
    • ๐Ÿ†• New render events for drawing custom elements on the canvas.
    • ๐Ÿ†• New physics events for making a loading bar during stabilization.
    • A lot of new methods that make extending easier.
    • ๐Ÿ’ป Manipulation system now works without the UI neccesarily.
    • Nodes and edges can cast shadows.
    • ๐Ÿ”ง Configurator system to dynamically change almost all options.
    • โš  Validator has been created for the network's options, warning you about typo's and suggesting alternatives.
    • Diamond shape for nodes.
    • Unified the label code so edges and nodes have the same label settings.
    • InheritColors for edges can be set to both, making a gradient fade between two node colors.
    • Redesigned the clustering system giving full control over it.
    • ๐Ÿ‘€ Random seed can be saved so the network will be the same every time you start it.
    • ๐Ÿ†• New physics solver based on ForceAtlas2 as implemented in gephi.]
    • ๐Ÿ†• New avoidOverlap option for physics.
    • ๐Ÿ›  Many, many bugfixes.

    DataSet

    • โฌ‡๏ธ Dropped support for Google visualization DataTable.
    • โฌ‡๏ธ Dropped support for appending data returned by DataSet.get() to an existing Array or DataTable.