Skip to main content
100%

D3 Interaction

✓ Published0🌍 Public
Mmariahdiaz
Last edited Oct 13, 2022
Created on Oct 5, 2022
Forked from HTML Starter

This example shows an interactive multi-series line chart of average temperatures in New York, San Francisco, and Austin from October 2011 through April 2012, loaded from a TSV file. Using d3.tsv and D3’s time scale, the code renders three colored temperature curves with SVG paths and a basis curve interpolation. Users can hover over the chart to highlight one city’s line while dimming others, or click a line to toggle its visibility. Interactions rely on event handlers and D3 selection methods, with a `d3.axisBottom` and linear y-scale providing the axes.

AI-generated description
MIT Licensed

Similar vizzes