Skip to main content
100%

Temperature in San Francisco Line Chart

✓ Published1🌍 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:

MIT Licensed

Similar vizzes