Skip to main content
100%

Fork of Circles

✓ Published0🌍 Public
Cchris.shimotake@gmail.com
Last edited May 1, 2024
Created on May 1, 2024
Forked from Circles

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