Skip to main content
100%

World Map with Cancer Data

✓ Published0🌍 Public
VVenkat-Sumith-Thota
Last edited Jul 16, 2023
Created on Jul 16, 2023

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 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