World Map with Cancer Data
✓ Published0🌍 Public
This example visualizes cancer case counts by country on a natural Earth projection world map. The choropleth map colors each country with a sequential blue scale based on its reported cases, while a legend and interactive tooltip display exact values on hover. It builds the map using D3 v6’s `d3.geoNaturalEarth1`, `d3.geoPath`, `d3.scaleSequential`, and `d3.interpolateBlues`, loading GeoJSON shapes and joining them with a sample dataset. The code also incorporates an axis-based legend and SVG rendering.
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