Skip to main content
Public

Share visualization

Loading preview…

Temperature in San Francisco Line Chart from CSV file

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 Chart from CSV file

1
Fframptonb
Last edited Feb 14, 2023
Created on Feb 13, 2023

This example visualizes one week of temperature readings in San Francisco as a smooth line chart, with a time-scaled x-axis for date and time and a linear y-axis for temperature. It uses D3 v5 APIs including `csv`, `scaleTime`, `scaleLinear`, `axisBottom`, `axisLeft`, `line`, and `curveBasis` to load the external CSV data, build the SVG axes with grid lines, and render a maroon curve inside a 960x500 SVG. The chart also includes axis labels and a title, with the data parsed to convert timestamps and numeric temperature values.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed