Skip to main content
100%

Network | Basic usage

✓ Published0🌍 Public
FFrissAnalytics
Last edited Apr 8, 2016
Created on Apr 8, 2016

A network of 50 nodes is arranged in a circular pattern, with one node highlighted in red, and the entire layout collapses inward toward the center over time. The example demonstrates basic usage of the vis.js library, using its `vis.Network` constructor with physics disabled to maintain fixed positions. The animation is driven by a JavaScript `setInterval` timer that repeatedly calls `network.getPositions()` and `network.moveNode()` to scale each node's coordinates toward the origin over 100 steps, creating a smooth shrinking effect.

AI-generated description

Similar vizzes