Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie Chart - Nghia Dang

Public visualization

Viewing a saved revision (read-only)

69665ca6182643198530af592d308d1e

Pie Chart - Nghia Dang

0 stars1🌍 Public
Tteohangxanh
Last edited Mar 23, 2022
Created on Mar 23, 2022
Forked from [TEST] Pie Chart

This example shows the distribution of U.S. racial groups as a pie chart with a corresponding legend, using data loaded from a JSON file. The visualization uses d3.pie and d3.arc to generate SVG paths for each slice, with colors assigned via d3.scaleOrdinal. A custom legend on the right displays each category’s label and percentage, formatted with d3.format. The chart is rendered as scalable vector graphics in a 960×500 viewport.

AI-generated description