Skip to main content
100%

sales distribution (group4)

✓ Published0🌍 Public
Ssaikrishnabussa
Last edited Jul 27, 2023
Created on Jul 27, 2023
Forked from HTML Starter

This visualization shows the distribution of sales across product categories using a pie chart, with each slice labeled by category name. The chart is rendered as an SVG in a React framework, with D3 v6 loading data from a CSV file and grouping it by the Category column using `d3.group` and `d3.sum`. The pie layout (`d3.pie`) and arc generator (`d3.arc`) create the slices, while `d3.scaleOrdinal` with `d3.schemeCategory10` assigns colors, and labels are positioned using `labelArc.centroid`.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes