Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

New Prj

Public visualization

Viewing a saved revision (read-only)

4955a8eb55514831aebbab4a4e315d70

New Prj

0 stars0🌍 Public
MMiyamotodan
Last edited Jun 1, 2020
Created on May 30, 2020

This example demonstrates a node-link diagram of a small directed graph, where six nodes (A through F) are connected by weighted edges. The visualization uses an interactive SVG rendering with a custom zooming mechanism, allowing users to pan and scale the entire scene. The graph structure is defined in JavaScript, with nodes randomly positioned on the canvas. The implementation leverages D3.js v5, specifically using the `select` and `scaleLinear` APIs, alongside a custom `d3.zoom` interaction to handle transformations. Rendering is split into separate functions for nodes and edges, with path generation calculated via an arc formula to create curved connections. The animation is achieved through D3 transitions that smoothly update node and edge positions over time.

AI-generated description

Prj

prova di costruzione di una navigazione complessa