Skip to main content
100%

Fork of Fork of Fork of colorado county data bar chart zoom

✓ Published0🌍 Public
Ooliverkendall99@gmail.com
Last edited Dec 3, 2024
Created on Nov 22, 2024

This example visualizes Colorado county election data, showing a bar chart that zooms into geographic regions. When users hover over an individual county, a tooltip displays the number of yes and no votes for a specific ballot proposition. The visualization combines a county GeoJSON map with CSV vote data, using d3.select, d3.json, and d3.csv to load and parse the datasets. The map and bars are built with React hooks alongside D3 v7, with margins and SVG sizing defined in the component.

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