🌍 Public
Viewing a saved revision (read-only)
8c1f24d8d299483e9ae0df5f8fec1050
Line plot interaction
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.