Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Interactive Force Directed Layout

Public visualization

Fork of Interactive Force Directed Layout

0 stars0🌍 Public
SSina Ja
Last edited Jul 12, 2021
Created on Jul 12, 2021

This example demonstrates an interactive force-directed graph where users can push and pull nodes, with selected nodes remaining fixed in place during continuous layout. The visualization uses the gojs library (`go.ForceDirectedLayout`, `go.Diagram`, `go.Shape`, `go.TextBlock`) to compute spring and electrical forces that automatically space nodes apart while dragging. The implementation customizes the layout to reuse a cached `ForceDirectedNetwork`, updating bounds for selected nodes and recalculating positions only when the structure changes. A “SelectionMoved” event triggers an extra layout pass after each drag interaction.

AI-generated description

An example showing the capabilities of VizHub.

Comments

Sign in to join the discussion.

MIT Licensed