Fork of Fork of Fork of colorado county data bar chart pt 2
✓ Published0🌍 Public
Bbepnye@gmail.com
Last edited Dec 5, 2024
Created on Dec 5, 2024
This bar chart visualizes Colorado county voting data for a proposition, with stacked bars showing the number of yes and no votes per county. Hovering over a bar reveals a tooltip displaying the vote counts for that specific county. The visualization uses d3.stack, d3.scaleBand, and d3.scaleLinear to construct the chart, while d3.zoom enables panning and zooming along the x-axis. Vote data comes from a CSV file and county geometry from a GeoJSON source, rendered as SVG via D3 v4.
AI-generated descriptionAn 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