Skip to main content
100%

Temperature in San Francisco Line Chart

✓ Published1🌍 Public
MMichał Szumnarski
Last edited Jul 15, 2019
Created on Jul 15, 2019

This example visualizes a week of temperature readings in San Francisco as a smooth, curving line chart, with the title “A Week in San Francisco.” The visualization uses d3.csv to load the data and d3.scaleTime and d3.scaleLinear to map timestamps and temperatures to positions. Axes are rendered with d3.axisBottom and d3.axisLeft, including grid lines and rotated labels, while the line itself is drawn as an SVG path using d3.line with a curveBasis interpolation. The chart is styled with custom CSS, including a maroon stroke for the line and large tick labels.

AI-generated description
MIT Licensed

Similar vizzes