Skip to main content
100%

A11 - Interaction

✓ Published0🌍 Public
CChandana Srinivas
Last edited Apr 22, 2024
Created on Apr 19, 2024
Forked from HTML Starter

This example shows a multi-series line chart of daily temperatures for New York, San Francisco, and Austin, rendered as SVG using D3 v7. It demonstrates interaction: hovering over a line highlights it in color while others fade to light grey, and clicking toggles a line’s visibility. The data is loaded from a TSV file and parsed with `d3.timeParse`. The chart uses `d3.scaleTime`, `d3.scaleLinear`, `d3.line` with `d3.curveBasis`, and `d3.axisBottom`/`d3.axisLeft` for axes, with CSS transitions on stroke styling.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes