Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Temperature in San Francisco Line Chart

Public visualization

Viewing a saved revision (read-only)

f27c3930ffd2498b80350c688c649421

Temperature in San Francisco Line Chart

0 stars1🌍 Public
MMajaha21
Last edited Apr 8, 2021
Created on Apr 8, 2021

This line chart displays a week of temperature readings in San Francisco, with time on the x-axis and temperature on the y-axis, using a smooth curved line. The visualization is rendered as an SVG using D3 v6, employing `d3.scaleTime`, `d3.scaleLinear`, `d3.line` with `curveBasis`, and axis components from `d3.axisBottom` and `d3.axisLeft`. Data is loaded from a CSV file via D3’s `csv` method, with timestamps parsed as dates and temperatures as numbers. Grid lines and axis labels are styled through CSS classes, and the chart includes a title and custom margins.

AI-generated description