Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie Chart

Public visualization

Viewing a saved revision (read-only)

706fb202782c4db59164aefe27d8e939

Pie Chart

0 stars0🌍 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