Skip to main content
100%

D3 | Dorling map using force layout

✓ Published0🌍 Public
TThanaporn-sk
Last edited Feb 6, 2018
Created on Feb 6, 2018

A Dorling map displays countries as circles sized by an encoded value, positioned near their geographic centers using a force-directed layout. The D3.js v3 visualization applies a Voronoi grid to enable stable country selection and prevent interactive flickering. Circle color and area map to data values from the provided JSON files, with country labels overlaid. The implementation utilizes D3's force simulation and Voronoi functions, with an optional developer mode to reveal the underlying grid structure. Coordinates and country attributes are loaded from external JSON data sources.

AI-generated description

dorling map with force layout and voronoi grid

Chart maps countries utilising longitude and latitude co-ordinates applied with a force network. Voronoi grid applied to improve the chart's interactive experience in selecting countries and prevent jumping/flashing. Note: Grid is invisible in production.

forked from <a href='http://bl.ocks.org/eesur/'>eesur</a>'s block: <a href='http://bl.ocks.org/eesur/3899eba895ca9065ccd5709383fb30bb'>d3js | dorling map with force and voronoi</a>

mit Licensed

Similar vizzes