Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Understanding the zoom on d3.js

Public visualization

Viewing a saved revision (read-only)

2d6a7f700a8640bcbde27e177d8f1ccf

Fork of Understanding the zoom on d3.js

0 stars0🌍 Public
KKamilPodsiadlo
Last edited Jul 21, 2021
Created on Jul 21, 2021

A fork of Mike Bostock’s zoom example, this visualization displays monthly S&P 500 closing prices as a blue area chart. An initial animated transition zooms into the data range from 2003–2004, and users can continue panning and zooming interactively. The code uses d3.zoom with scaleExtent and translateExtent, d3.area with curveMonotoneX, and d3.axisBottom for the time axis, rendering everything as SVG.

AI-generated description