Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

A11 Interaction

Public visualization

Viewing a saved revision (read-only)

92bce350db57424e9f5b78d107557d4e

A11 Interaction

0 stars0🌍 Public
NNoah C.
Last edited Apr 21, 2024
Created on Apr 21, 2024

Three cities' daily temperatures are shown as smooth, colored lines over a shared time axis, demonstrating brushing and zooming interactivity in D3. Users can click a city to toggle its line's visibility, hover to highlight a specific line while dimming others, and zoom with the mouse to inspect date ranges. The visualization uses d3.zoom with `rescaleX` to update the x-axis and line geometry, while d3.line with `curveBasis` creates the smoothed paths. Data is loaded from a TSV file and rendered as SVG, with d3.scaleOrdinal assigning categorical colors.

AI-generated description

Showing interactivity in D3. Full-screen for proper scaling.