Skip to main content
100%

colorado county data map

✓ Published1🌍 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:

  • if you hover over a county it will display the number of yes votes and no votes for the current proposition
  • TODO:
  • -color the map according to the number of votes
  • -add a selector for multiple propositions
  • -clean up code and functions into multiple classes
MIT Licensed

Similar vizzes