Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Line Chart of Temperature in San Fran..

Public visualization

Line Chart of Temperature in San Fran..

0 stars2๐ŸŒ 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

Comments

Sign in to join the discussion.

MIT Licensed