Skip to main content
100%

Pie chart , ICE-7

✓ Published0🌍 Public
AAmanullah007
Last edited Mar 27, 2022
Created on Mar 27, 2022
Forked from Hello HTML

A pie chart displays the top ten weekly product sales in a shop, with each slice sized by the `weeksales` value and colored via `d3.scaleOrdinal`. The code loads CSV data from a GitHub gist using `d3.csv`, computes the pie layout with `d3.pie`, and draws SVG paths with `d3.arc`. Slice labels show formatted sales values, and a legend lists product names with matching colors and values.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes