🌍 Public
Viewing a saved revision (read-only)
6871b87e87ac4ed989a54230945fa56f
Map of Mexico
This visualization renders a choropleth-style map of Mexico using React and D3 v6, displaying the country’s twelve regions as olive-colored SVG paths from TopoJSON data. The map uses a `geoMercator` projection via `d3.geoPath`, with graticule lines overlaid in purple. Land regions respond to hover with a pink stroke, while missing data areas appear gray. The code loads geographic features from an external JSON URL using `d3.json` and `topojson.feature`, then passes them to the `Marks` component for rendering.
AI-generated descriptionReact Starter code.