Skip to main content
100%

Force Layout Graph - National Contiguity

✓ Published0🌍 Public
DDocwali777
Last edited Jan 23, 2017
Created on Jan 23, 2017

This example shows the national contiguity of countries using a force-directed graph where nodes represent individual countries and links indicate shared borders. The visualization loads geographic adjacency data from a GitHub-hosted JSON file, with each node rendered as a flag icon via the flag-icon-css CDN. Built with D3 v4, it uses `d3.forceSimulation` with link, charge, center, collide, and x/y positioning forces to arrange the nodes, while drag behavior lets users reposition them interactively. Hovering reveals a tooltip (via d3-tip) displaying the country name.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes