Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Temperature in San Francisco Line Chart

Public visualization

D3 Temperature in San Francisco Line Chart

0 stars1🌍 Public
Aadbirch
Last edited Jan 23, 2023
Created on Jan 23, 2023

This line chart visualizes temperature variations in San Francisco over a week, using a smooth curved line to show the trend over time. The visualization employs D3 v7's `scaleTime`, `scaleLinear`, `axisBottom`, `axisLeft`, and `line` with `curveBasis` to render the SVG path. The data is loaded from a CSV file, with timestamps parsed into Date objects and temperatures converted to numbers. The chart includes labeled axes, grid lines, and a title, while the line is styled with a maroon stroke and rounded joins.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed