Skip to main content
100%

Force-Directed Graph from Flow CSV

✓ Published0🌍 Public
Aalex-rind
Last edited Dec 14, 2018
Created on Dec 14, 2018

This force-directed graph visualizes asylum flows between countries in 2016, based on a CSV dataset from UNHCR. Nodes represent countries of origin and asylum, while links show migration flows between them, with line width scaled to the flow volume using a square-root scale. The layout is computed by a physical simulation in D3 v4, where charged particles repel and springs attract connected nodes, causing related countries to cluster together. The network uses SVG circles and lines, with drag interaction to explore the graph. This example is a variant of Mike Bostock’s classic Les Misérables character co-occurrence visualization, adapted to read edge data from a CSV file and visualize asylum-seeker flows.

AI-generated description

This simple force-directed graph shows character co-occurence in Les Misérables. A physical simulation of charged particles and springs places related characters in closer proximity, while unrelated characters are farther apart. Layout algorithm inspired by Tim Dwyer and Thomas Jakobsen. Data based on character coappearence in Victor Hugo's Les Misérables, compiled by Donald Knuth.

Compare this display to a force layout with curved links, a force layout with fisheye distortion and a matrix diagram.

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/4062045'>Force-Directed Graph from Flow CSV</a>

gpl-3.0 Licensed

Similar vizzes