Skip to main content
100%

Fork of Fork of Fork of colorado county data bar chart pt 2

✓ Published0🌍 Public
Mm_gilespufahl@coloradocollege.edu
Last edited Dec 4, 2024
Created on Dec 4, 2024

This visualization displays a stacked bar chart of yes and no votes for each Colorado county from a CSV file, rendered using D3.js v4. The chart uses D3’s `scaleBand` and `scaleLinear` functions to map counties and vote counts, with each bar segmented into green and red sections. Hovering over a county triggers a tooltip showing the specific vote tallies. The map data comes from a GeoJSON file, though currently only the bar chart is implemented, not the choropleth.

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