Skip to main content
100%

sf temp RreraChert

✓ Published1🌍 Public
CCalvin.
Last edited Mar 16, 2022
Created on Mar 16, 2022
Forked from sf temp lineChert

This example visualizes weekly average temperatures in San Francisco using an area chart. The chart plots timestamps on the x-axis and temperature values on the y-axis, with a smooth, maroon-filled curve rendered as an SVG path. The code uses D3.js v7 functions including `scaleTime`, `scaleLinear`, `area`, `curveBasis`, and `axisBottom`/`axisLeft` to construct the axes and area. Data is loaded from a CSV file hosted on VizHub, parsed to convert timestamps to `Date` objects and temperatures to numbers, then rendered. The visualization includes axis labels and a title, with gridlines styled via CSS.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes