Skip to main content
100%

Fork of Temperature in San Francisco Line Chart

✓ Published0🌍 Public
Jjwadhwa6
Last edited Feb 21, 2022
Created on Feb 21, 2022

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 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