Skip to main content
Public

Share visualization

Loading preview…

Making a Line Chart

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

Making a Line Chart

0
MMinh Luong
Last edited Jan 9, 2022
Created on Jan 9, 2022
Forked from Working with Time

This example shows a line chart of weekly temperature readings, with smooth curves connecting data points and circular markers that display values on hover. The chart uses React components for rendering the SVG, with d3.scaleLinear for both axes and d3.line with curveNatural for the path. Axis ticks and labels are generated through custom React components, while the temperature data comes from a local CSV file fetched using d3.csv.

AI-generated description

A scatter plot of The Iris Dataset

Comments

Sign in to join the discussion.

MIT Licensed