Skip to main content
100%

Temperature in San Francisco Area Chart from CSV file

✓ Published0🌍 Public
Fframptonb
Last edited Feb 14, 2023
Created on Feb 14, 2023

The visualization displays one week of San Francisco temperatures as a smooth area chart, with time on the x-axis and temperature on the y-axis. The chart includes labeled axes, grid lines, and a title, all rendered as SVG elements. Using D3 v5, the code loads data from a remote CSV file via `d3.csv`, parses timestamps and numeric values, then applies `scaleTime`, `scaleLinear`, `axisBottom`, `axisLeft`, and `area` with a basis curve to generate the filled path. The axes are customized with tick marks and removed domains, while the margin layout positions the chart within a fixed 960x500 viewport.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by producing an area chart from data within a two-column CSV file. (based on forked code from Curran Kelleher)

MIT Licensed

Similar vizzes