Skip to main content
100%

World Map Colored

✓ Published0🌍 Public
AAri Schechter
Last edited Oct 25, 2024
Created on Oct 25, 2024
Forked from Simple World Map

This example displays a world map with countries colored in a rainbow sequence, overlaid with graticule grid lines and an outline. The visualization fetches GeoJSON data from the `visionscarto-world-atlas` package, converts it using `topojson-client`, and renders it with `d3.geoPath` and a `geoNaturalEarth1` projection. Each country’s fill color is assigned sequentially via `scaleSequential` and `interpolateRainbow`, based on its index in the features array. The map is drawn using D3’s data join pattern within a React component.

AI-generated description
MIT Licensed

Similar vizzes