Skip to main content
100%

Fork of colorado county data bar chart

✓ Published1🌍 Public
Ooliverkendall99@gmail.com
Last edited Nov 21, 2024
Created on Nov 21, 2024

This fork of a Colorado county bar chart visualizes yes and no votes for a proposition, with each bar representing a county. Hovering over a bar triggers a tooltip that displays the county name along with its yes and no vote counts, using D3’s selection and event handling. The chart uses `d3.scaleBand` and `d3.scaleLinear` for axes, with zoom support via `d3.zoom`. Vote data comes from a CSV file, while county names are sourced from a GeoJSON file for reference.

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