Area chart
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed