Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

area chart

Public visualization

area chart

0 stars0🌍 Public
Nnagarjuna1968
Last edited Mar 28, 2022
Created on Mar 28, 2022

This area chart visualizes car sales over time, using a yellow filled region beneath a smooth line to emphasize the trend up to 2009. The code employs D3 v5’s `area` and `line` generators with `curveBasis` for smoothing, scaling time and linear axes via `scaleTime` and `scaleLinear`. Data is loaded from a CSV using `d3.csv`, with dates parsed via `timeParse`. SVG output includes styled grid lines, axis labels, and a title.

AI-generated description

combined line and area charts

Comments

Sign in to join the discussion.

MIT Licensed