Skip to main content
100%

Line plot interaction

✓ Published2🌍 Public
Jjbruzzo
Last edited Nov 1, 2022
Created on Nov 1, 2022

A line plot of maximum daily temperatures for 100 days, rendered as an SVG using D3 v5 and React, displays a time series. Moving the mouse over the plot reveals a tooltip with the exact date and temperature of the nearest data point, determined via a scan for the closest date. The interaction includes a highlighted circle on the line, with the chart also shading temperatures below freezing.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes