Skip to main content
100%

Fork of Area Chart

✓ Published0🌍 Public
Aakhil kata
Last edited Jul 3, 2022
Created on Jul 3, 2022

This example visualizes the sales of cars in the United States over time using a combined line and area chart rendered as SVG via D3 v5. The line emphasizes the sales trend while the filled area below highlights the cumulative magnitude. The code uses d3.line, d3.area, scaleTime, and scaleLinear, with data pulled from a CSV file where dates are parsed using d3.timeParse. Curves are smoothed with curveBasis, and axes are generated using d3.axisBottom and d3.axisLeft.

AI-generated description

combined line and area charts

MIT Licensed

Similar vizzes