Skip to main content
100%

Understanding the zoom on d3.js

✓ Published1🌍 Public
11andrey3
Last edited Dec 3, 2018
Created on Nov 29, 2018
Forked from Hello VizHub

This example demonstrates interactive zooming and panning on a time-series area chart of S&P 500 monthly closing prices. The visualization uses d3.zoom with scale and translate extents to constrain navigation, updating the area path and x-axis via the transform’s `rescaleX` method during the `zoom` event. Animated intro zoom transitions from January 2003 to January 2004. Data comes from a local CSV file, rendered as an SVG area with `d3.area` and `curveMonotoneX`.

AI-generated description
MIT Licensed

Similar vizzes