Skip to main content
100%

Creating a Line Chart

✓ Published0🌍 Public
GGregS1290
Last edited Oct 31, 2021
Created on Oct 31, 2021

This example shows a line chart of weekly temperature and time data from a CSV file hosted on GitHub. The chart uses a natural curve to connect temperature measurements across timestamps, with a time-scaled x-axis and linear y-axis. Built with React, D3 v5, and SVG, the code uses `scaleTime`, `scaleLinear`, `extent`, and `line().curve(curveNatural)` to render the visualization. Custom React components handle the axes and marks, while the `csv` function loads the dataset with temperature and timestamp parsing.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes