Skip to main content
100%

Line Chart - Trend

✓ Published1🌍 Public
Ggayathrisaxena23@gmail.com
Last edited Mar 30, 2026
Created on Mar 30, 2026
Forked from React & D3 Starter

This line chart displays a quantitative trend over time, plotting five yearly data points from 2018 to 2022, with values increasing from 20 to 90. The visualization renders in an SVG using D3 v7, with a linear x-scale for years and a linear y-scale for values. The code constructs the line path using `d3.line()`, applies axes via `d3.axisBottom()` and `d3.axisLeft()`, and labels the axes as "Year" and "Value," all within a 600×400 pixel canvas with specified margins.

AI-generated description
MIT Licensed

Similar vizzes