Force-Based Cartogram to Bubble Chart
This example demonstrates a force-based cartogram of U.S. county demographics that smoothly transitions into a bubble chart. Built with D3 v4, the visualization uses the same dataset to power a forceSimulation that first distorts county shapes based on population, then morphs each county into a proportional bubble. The transition between the two representations is animated, with SVG rendering. Demographic data for counties is loaded from a CSV file. The code is forked from an earlier block by E. Meek.
AI-generated descriptionTaking advantage of the forceSimulation-based nature of the cartogram to switch to a bubble chart using the same data.
Demographics from http://library.duke.edu/data/collections/popest
forked from <a href='http://bl.ocks.org/emeeks/'>emeeks</a>'s block: <a href='http://bl.ocks.org/emeeks/894ff63d02551badfc75536d77dcd49c'>Cartogram to Bubble Chart</a>