Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Pie chart-rohitha

Public visualization

Viewing a saved revision (read-only)

ddf535de8ef441c9a866c29df49c50ac

Pie chart-rohitha

0 stars0๐ŸŒ Public
Rrohithareddy1404@gmail.com
Last edited Mar 26, 2025
Created on Mar 26, 2025
Forked from Hello VizHub

This area chart visualizes the total purchase amount in US dollars by customer age, using shopping trends data loaded from a CSV file via `d3.csv`. The chart applies `d3.rollup` to aggregate and sum purchases per age, then renders the result as an SVG path generated with `d3.area`. Axes are drawn using `d3.axisBottom` and `d3.axisLeft`, with linear scales (`d3.scaleLinear`) mapping age and purchase totals. A blue filled area with a darker stroke highlights the distribution, while axis labels clarify the variables.

AI-generated description