Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Interactive Force Directed Layout

Public visualization

Viewing a saved revision (read-only)

cccef518ce534c009315e0df0d140cfe

Fork of Interactive Force Directed Layout

0 stars0🌍 Public
Mmah-far
Last edited Aug 20, 2021
Created on Aug 20, 2021

This example demonstrates an interactive force-directed graph using the GoJS library, where nodes and links can be pushed and pulled around the canvas. The layout continuously runs as users drag nodes, keeping selected nodes fixed while automatically repositioning all others. It uses a custom `ContinuousForceDirectedLayout` that extends GoJS’s built-in layout, with the diagram’s `draggingTool` triggering layout invalidation during drag operations. The code also includes standard GoJS node and link templates, with circular node shapes and arrow-headed links.

AI-generated description

An example showing the capabilities of VizHub.