D3 Line Chart
✓ Published0🌍 Public
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 descriptionMIT Licensed