Skip to main content
100%

Area chart

✓ Published0🌍 Public
Aanushaanumula
Last edited Jul 3, 2022
Created on Jul 3, 2022
Forked from HTML Starter

This example visualizes PS4 sales from 2015 to 2022 using an area chart, highlighting the yearly sales trend with a filled region beneath the curve. Built with React and D3 v5, the code leverages `select` for SVG manipulation, `scaleTime` and `scaleLinear` for axes, and `axisBottom`/`axisLeft` for tick generation. The area is created via `area()` with a `curveBasis` smoothing. Data is loaded from a GitHub CSV using `csv`, with sales values parsed as numbers and years as dates, rendered entirely as SVG.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes