Line plot interaction
✓ Published2🌍 Public
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.
MIT Licensed