Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Temperature in San Francisco Line Chart

Public visualization

Viewing a saved revision (read-only)

392b153f1c364c189b7d6f8cb64f08a5

Temperature in San Francisco Line Chart

0 stars1🌍 Public
AAbhijeet Panda
Last edited Oct 29, 2019
Created on Oct 29, 2019

This line chart displays one week of temperature data in degrees Celsius for San Francisco, sourced from the Data Canvas - Sense Your City project. The visualization plots temperature over time, with a smooth curve connecting the data points using D3’s `line` generator with `curveBasis`. The code uses `d3.scaleTime` and `d3.scaleLinear` to map timestamps and temperatures to SVG coordinates, with axes rendered via `d3.axisBottom` and `d3.axisLeft`. The chart is rendered as an SVG, with a maroon line and gridlines, and includes axis labels and a title.

AI-generated description

This line chart shows one week of temperature (in degrees Celcius) in San Francisco. The data comes from Data Canvas - Sense Your City.

Made in this video: