Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Line Chart (ICE 7)

Public visualization

Line Chart (ICE 7)

0 stars0🌍 Public
AAashish Pandey
Last edited Mar 28, 2022
Created on Mar 28, 2022

This example displays the average population of the United States over time, using a smooth, curved line to connect annual data points ordered by year. The chart is rendered as an SVG with React, using D3’s `scaleTime`, `scaleLinear`, `line()`, and `curveNatural` to map and draw the trend. Axis ticks are generated by reusable React components, and the data is loaded asynchronously from a CSV URL using D3’s `csv` and React’s `useState`/`useEffect`. The visualization is styled with Lato font and a minimal, grid-based aesthetic.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed