Fork of Temperature in San Francisco Line Chart
✓ Published0🌍 Public
This line chart displays one week of temperature data in degrees Celsius for multiple cities, sourced from the Data Canvas - Sense Your City dataset. It plots time on the x-axis and temperature on the y-axis, with each city’s series drawn as a distinct colored path using D3’s `line` generator with a basis curve. The code uses `d3.csv`, `scaleTime`, `scaleLinear`, `scaleOrdinal`, and `nest` to structure the data, while axes and labels are rendered via `axisBottom` and `axisLeft`. The visualization is rendered as an SVG, with each city color-coded through the `schemeCategory10` palette.
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