Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Temperature in San Francisco Line Chart

Public visualization

Viewing a saved revision (read-only)

FdlwKvMbENd4r0lo33-p9

Fork of Temperature in San Francisco Line Chart

0 stars0🌍 Public
NNikhil206-docom
Last edited Nov 1, 2026
Created on Nov 1, 2026

This line chart displays one week of temperature data in degrees Celsius for San Francisco, sourced from Data Canvas - Sense Your City. The visualization shows temperature trends over time, with time on the x-axis and temperature on the y-axis, both rendered using SVG. The code utilizes d3.scaleTime, d3.scaleLinear, d3.axisBottom, d3.axisLeft, and d3.line with a curveBasis smoothing function. Data is loaded via d3.csv from a remote gist URL, with timestamps parsed into Date objects and temperatures converted to numbers before rendering.

MIT Licensed