Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Country Map

Public visualization

Viewing a saved revision (read-only)

d9a0fb22f8d94a6cb3081415eeafaccc

Fork of Country Map

0 stars0🌍 Public
RRinoj-Gautam
Last edited Apr 13, 2023
Created on Apr 13, 2023
Forked from Country Map

This example displays a choropleth map of Italy, highlighting its regional borders and using a Mercator projection to shape the geographic outlines. The visualization is rendered as an SVG, with sky-blue fill for regions and black strokes for interior boundaries, while a hover effect changes the region color to PaleVioletRed. The code leverages D3 v5’s `geoMercator` and `geoPath` for map projection and path generation, TopoJSON’s `feature` and `mesh` functions to process geographical data from the italy.json file, and React with a custom `useData` hook to fetch and manage the data.

AI-generated description