Temperature in San Francisco Line Chart
✓ Published0🌍 Public
This line chart displays one week of temperature in San Francisco, with time on the x-axis and temperature on the y-axis. The code uses D3 v5’s `scaleTime`, `scaleLinear`, `axisBottom`, `axisLeft`, and a `line` generator with `curveBasis` to render the smooth path in SVG. Data is loaded from a CSV via `d3.csv` and parsed into `Date` and numeric values. The chart includes axis labels, grid lines, and a title, with data sourced from Data Canvas - Sense Your City.
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