Skip to main content
Public

Share visualization

Loading preview…

D3 course - working with time

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

D3 course - working with time

5
JJames Rhodes
Last edited Apr 5, 2022
Created on Mar 28, 2022
Forked from Iris Scatterplot

This example visualizes a week of San Francisco temperatures in degrees Celsius using a line chart with a gradient stroke and colored scatter points. It shows temperature fluctuations over time, with each point offering a tooltip displaying the exact date and rounded temperature. The visualization is built with React and D3 v7, using `scaleTime` and `scaleLinear` for axes, `d3.line` with curve interpolation for the path, and a custom `linearGradient` for the stroke. Data is loaded asynchronously via `d3.csv` from a GitHub gist.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed