Fork of Circles
✓ Published0🌍 Public
This example demonstrates mapping U.S. states from TopoJSON data, coloring California red and other states blue. It uses `d3.json` to fetch the data, `topojson.feature` to convert it to GeoJSON, and `d3.geoPath` to render the shapes as SVG paths. The code also includes ES6 module imports from local files and from D3, and appends SVG title elements with click handlers.
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