Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Temp Line Plot

Public visualization

Temp Line Plot

0 stars2🌍 Public
Kkkwyoung
Last edited Aug 7, 2020
Created on Aug 7, 2020
Forked from Scatter Plot

This visualization shows a week of hourly temperature readings in San Francisco as a smooth, firebrick-colored line plotted against time and temperature axes. The line chart is rendered as an SVG using d3.v5, with the time-based x-axis and linear y-axis generated through axisBottom and axisLeft. The code imports specific d3 modules including scaleTime, scaleLinear, axisBottom, axisLeft, and line, applying a curveBasis to the line generator. The csv data is loaded and parsed, with temperature values converted to numbers and timestamps to Date objects.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed