Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Focus + Context

Public visualization

Focus + Context

0 stars0🌍 Public
Pprincit
Last edited Jun 1, 2020
Created on May 31, 2020
Forked from Hello VizHub

This visualization depicts Apple’s stock price over time as a blue area chart, using a focus+context technique to explore the data. A smaller overview chart shows the full time series, while a gray brushed region can be dragged to pan or resized to zoom the main chart’s date range. The code uses D3 v5’s `d3.brushX` for the interactive selection, `d3.scaleUtc` and `d3.scaleLinear` for axes, and SVG `clipPath` to constrain the focus area. Data comes from Yahoo Finance via CSV.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed