Skip to main content
100%

Pie Chart - Nghia Dang

✓ Published1🌍 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
MIT Licensed

Similar vizzes