Temperature in San Francisco Line Chart
✓ Published1🌍 Public
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 descriptionThis 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