Skip to main content
100%

D3 Line Chart

✓ Published0🌍 Public
KKwasi Acquaye
Last edited Feb 28, 2024
Created on Feb 28, 2024
Forked from D3 Scatter plot

This example visualizes cumulative sales across four fiscal quarters (Q1–Q4) using a line chart rendered with SVG. The code loads quarter-by-quarter sales data from a CSV file and plots the trend, with a steelblue line connecting points positioned along a band scale for quarters and a linear scale for sales values in millions. The chart includes labeled axes, axis ticks, and a title, and it relies on D3 v7’s `d3.line`, `scaleBand`, `scaleLinear`, and axis methods. The visualization effectively communicates a steady upward sales trajectory, as the line clearly rises from 14 million to 37 million across the quarters.

AI-generated description
MIT Licensed

Similar vizzes