Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a world map

Public visualization

Making a world map

0 stars0🌍 Public
EEhtisham UL Hassan
Last edited Dec 2, 2021
Created on Dec 2, 2021

This example visualizes world geography by rendering country boundaries, graticules, and a globe sphere using geographic projections. The map displays landmasses in teal with highlighted interior borders, set against a light gray sphere and graticule grid. The code uses `d3.geoEqualEarth`, `d3.geoPath`, and `d3.geoGraticule` to project and draw geographic features in SVG. It fetches TopoJSON data from the `world-atlas` package, converting it to GeoJSON with `topojson.feature` and `topojson.mesh`. React manages the component state and rendering, with styles defined in CSS.

AI-generated description

Refactored Bar Chart.

Comments

Sign in to join the discussion.

MIT Licensed