Skip to main content
100%

fresh block

✓ Published0🌍 Public
DDinoJay
Last edited Mar 11, 2016
Created on Mar 11, 2016

This example demonstrates an interactive force-directed graph of a hierarchical dataset, where nodes represent data points and links show parent-child relationships. The visualization uses D3.js version 3.5.5 with a force layout to position nodes, while a semantic zoom behavior (via `d3.behavior.zoom`) allows panning and scaling the entire graph. Nodes are colored by group or hierarchy level, with the root node highlighted in white, and can be dragged individually using `d3.behavior.drag`. The code applies linear scales for coordinate transformation during zoom and dynamically updates node positions and link lines on each tick event, with the data sourced from a Gist and rendered as an SVG.

AI-generated description

semantic zoom taken from http://jsfiddle.net/cSn6w/10/

Similar vizzes