Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Working Zoom/Pan

Public visualization

More options

Embed on a websiteCopy iframe embed code

The embed preserves the visualization's visibility and project dataset permissions.

Download & exportHTML, source ZIP and authorized project data

Source ZIP contains editable visualization files; it does not include project datasets. Standalone HTML is available where authorized and packages readable referenced data for offline use. Dataset ZIP requires project read permission.

Standalone HTMLSource ZIP
Publishing & handoffCopy a client maintenance summary

Includes the canonical link, visibility, and available export formats. Confirm dataset attribution, licensing and maintenance responsibilities with the publisher.

Working Zoom/Pan

0 stars1🌍 Public
Bbepnye@gmail.com
Last edited Dec 5, 2024
Created on Dec 5, 2024

This visualization displays Colorado county voting data for a ballot proposition, showing stacked bars of yes and no votes for each county. The chart uses D3 v4’s `d3.zoom` and `d3.event.transform` with `rescaleX` to enable panning and zooming along the horizontal axis, while vertical movement is locked. Hovering over bars or counties reveals a tooltip with county-specific vote counts, using the `tooltip` module from `svgGlobals.js`. Data originates from a GeoJSON file of Colorado counties and a CSV of proposition results, rendered as SVG.

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

Comments

Sign in to join the discussion.

MIT Licensed