World and Country Map
✓ Published0🌍 Public
This example displays two side-by-side map visualizations: a basic world map and a choropleth country map. The world map renders all country boundaries using an SVG path generated with `d3.geoPath` and a `d3.geoMercator` projection. The country map colors specific nations (Egypt, Nigeria, Sudan) on a linear color scale from light to dark blue based on numeric values, while labeling each country’s name at its centroid. Both maps load GeoJSON data from the same GitHub-hosted world dataset.
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