Skip to main content
100%

Tempature Linechart/

✓ Published1🌍 Public
JJordy Fronik
Last edited Nov 3, 2020
Created on Nov 3, 2020

This line chart shows one week of temperature in degrees Celsius in San Francisco, sourced from Data Canvas - Sense Your City. D3's `scaleTime` and `scaleLinear` map time and temperature values to the SVG canvas, with `axisBottom` and `axisLeft` generating the axes and gridlines. The data is loaded via `csv` and rendered as a smoothed path using `line` with `curveBasis`, drawn in hot pink with a 5-pixel stroke. The graph title and axis labels are added as SVG text elements.

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.

Code learned from Curran: Curran — Intro to datavisualisation.

MIT Licensed

Similar vizzes