Skip to main content
100%

ice07-areachart

✓ Published0🌍 Public
LLaasyaJ256
Last edited Mar 30, 2026
Created on Mar 30, 2026
Forked from React & D3 Starter

This area chart visualizes total sales by product category from a retailer CSV file, loading data via `d3.csv` with `d3.autoType`. It aggregates sales using `d3.rollups` and `d3.sum`, then maps categories to the x-axis with `d3.scalePoint` and sales to a linear y-axis with `d3.scaleLinear`. The graphic uses `d3.area` to create the filled region and overlays a `d3.line` path for clarity, with axes rendered by `d3.axisBottom` and `d3.axisLeft` as SVG elements.

AI-generated description
MIT Licensed

Similar vizzes