World Map Visualization
✓ Published0🌍 Public
This example renders a world map using D3.js and SVG, showing country boundaries as light blue shapes with white strokes. It loads GeoJSON world map data from a remote repository and applies a Mercator projection to convert geographic coordinates into screen positions, with the map centered on the canvas. The visualization demonstrates key D3 features such as `d3.geoMercator`, `d3.geoPath`, and loading external data via `d3.json`, alongside ES6 module imports from a local file. The map is drawn by binding the GeoJSON features to SVG `path` elements, with styling applied via inline attributes.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed