Skip to main content
Public

Share visualization

Loading preview…

Temperature in San Francisco Line Plot.js

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Temperature in San Francisco Line Plot.js

1
Dddperdue
Last edited Mar 27, 2020
Created on Mar 24, 2020

This visualization displays a week of temperature readings in San Francisco as a smooth line plot over time, with a clear title and labeled axes. The code uses D3 v5 APIs including `scaleTime`, `scaleLinear`, `line` with `curveBasis`, `axisBottom`, and `axisLeft` to render the SVG chart. Temperature and timestamp data are loaded from a CSV file and parsed before being mapped to scales. Gridlines are created via tick sizes, and the line path is styled with a maroon stroke.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed