Skip to main content
100%

World and Country Map

✓ Published0🌍 Public
VVenkat-Sumith-Thota
Last edited Jul 22, 2023
Created on Jul 22, 2023
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes