Skip to main content
100%

Fork of Working Zoom/Pan

✓ Published0🌍 Public
Bbepnye@gmail.com
Last edited Dec 11, 2024
Created on Dec 11, 2024
Forked from Working Zoom/Pan

This example demonstrates a zoomable and pannable stacked bar chart visualizing Colorado county election votes using d3.zoom with scaleExtent and translateExtent to constrain navigation. Data is loaded from external GeoJSON and CSV sources, then rendered using d3.stack, scaleBand, and scaleLinear. The implementation includes SVG clip paths, axis elements, and a tooltip module (svgGlobals.js) for showing vote details—though tooltip interactivity appears commented out in the main rendering code.

AI-generated description

An example showing the capabilities of VizHub:

  • Working stacked bar chart with zoom and pan
  • additional features coming early next week
MIT Licensed

Similar vizzes