Line Chart of Temperature in San Fran..
✓ Published2🌍 Public
This example displays a week of temperature readings in San Francisco as a smooth, navy line against a light gray grid. The chart uses D3.js (v5) to fetch a CSV file of timestamped temperatures, parse the dates, and map time and temperature to horizontal and vertical axes using `scaleTime` and `scaleLinear`. The line is generated with `line()` and `curveBasis` for interpolation. Axis tick marks and labels are drawn using `axisBottom` and `axisLeft`, all rendered as SVG elements inside a 960-by-500 viewport.
AI-generated descriptionMIT Licensed