Skip to main content
100%

Line Chart - Trend

✓ Published1🌍 Public
YYash Raj Mathur
Last edited Mar 30, 2026
Created on Mar 30, 2026

A line chart displays a quantitative trend over time, plotting five data points from 2018 to 2022 where values increase from 20 to 90. The SVG visualization uses d3.scaleLinear for both axes and a d3.line generator to create the blue stroked path. The chart includes labeled X and Y axes with tick marks, rendered using d3.axisBottom and d3.axisLeft. The code manually sets chart dimensions and margins, then appends the line and axes to a group element within the SVG canvas.

AI-generated description
MIT Licensed

Similar vizzes