🌍 Public
Viewing a saved revision (read-only)
839cbeac6bdd46dd9e07266aa8aea1bd
ICE_8
This example displays a world choropleth map, coloring each country according to randomly generated sample data values. Countries appear in varying shades of blue, with hovering over a country turning it orange and revealing its specific value in a tooltip. The map uses D3 v7 with a natural Earth projection via `d3.geoNaturalEarth1` and renders geographic paths with `d3.geoPath`. It loads TopoJSON country boundaries from the world-atlas package, converts them to GeoJSON, and applies a sequential color scale with `d3.scaleSequential` and `d3.interpolateBlues`.
AI-generated description