Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

colorado county data map

Public visualization

Viewing a saved revision (read-only)

3a0d9640c9284e8883cd03806b4eacf6

colorado county data map

0 stars1🌍 Public
Ooliverkendall99@gmail.com
Last edited Dec 16, 2024
Created on Nov 19, 2024
Forked from SC4

This example displays a choropleth map of Colorado counties colored by the percentage of yes votes on a ballot proposition. Hovering over a county reveals a tooltip with the county name and counts of yes and no votes, while clicking logs the totals to the console. The visualization uses d3.geoPath with a Mercator projection to render GeoJSON county boundaries, d3.scaleLinear for the color scale, and a d3.pattern overlay to mark counties with majority yes votes. Vote data comes from a CSV file, and the tooltip is positioned using mouse events.

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.