Skip to main content
100%

Line Chart of Temperature in San Fran..

✓ Published2🌍 Public
NNkwachi Abel
Last edited May 25, 2022
Created on May 25, 2022

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 description
MIT Licensed

Similar vizzes