Skip to main content
100%

ICE - 7 Area Chart for Car Sales

✓ Published2🌍 Public
TTharun2022
Last edited Mar 27, 2022
Created on Mar 27, 2022
Forked from HTML Starter

A smooth area chart tracks Canadian car sales over time, emphasizing the overall trend with a filled curve beneath a distinct line. The visualization uses React with D3 v5, drawing SVG elements via the `area` and `line` generators with `curveBasis` for smoothing. Data is parsed from a CSV using `d3.csv` and `d3.timeParse`, with time and linear scales (`scaleTime`, `scaleLinear`) mapping years to sales values. Axis labels and gridlines are added through `axisBottom` and `axisLeft`, while the black fill and stroke highlight the data's shape.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes