Skip to main content
100%

Pie Chart

✓ Published0🌍 Public
LLikhitaMudagereShivaraj@my.unt.edu
Last edited Oct 26, 2025
Created on Oct 26, 2025

This pie chart displays the proportional distribution of six product categories by value, with each slice labeled directly at its centroid. The visualization uses D3.js v7’s `d3.pie()` and `d3.arc()` generators to compute arc paths from CSV data loaded via `d3.csv()`. A category-10 ordinal color scale assigns distinct hues to each slice, while white stroke separates adjacent segments. The SVG is centered within a fixed 450×450 viewport, and text labels are positioned using the `arc.centroid()` method.

AI-generated description
MIT Licensed

Similar vizzes