Skip to main content
100%

two

✓ Published1🌍 Public
Mmsahithipatel@gmail.com
Last edited Oct 28, 2025
Created on Oct 28, 2025
Forked from D3 Starter

This pie chart visualizes total sales across product categories using data loaded from a CSV file. Categories include Electronics, Clothing, Furniture, Groceries, and Stationery, with summed sales values displayed directly on each slice. The visualization uses d3.csv to load the data, d3.rollups to aggregate sales by category, and d3.pie with d3.arc to generate the slices. A categorical color scale assigns distinct hues, while labels and a legend provide context. The chart is rendered as SVG within an HTML page, with arcs stroked in white for separation.

AI-generated description
MIT Licensed

Similar vizzes