Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Donut Chart v2

Public visualization

Viewing a saved revision (read-only)

5909cf0d8ff245cd8dcd107aacb10903

Donut Chart v2

0 stars1🌍 Public
MMaeva B
Last edited Sep 28, 2022
Created on Sep 28, 2022

A donut chart displays country-level aggregated values, ranking the United States highest, followed by the United Kingdom and Germany, with each slice labeled and connected via polylines. Built with D3 v4 and SVG, it uses `d3.pie()` for slice generation, `d3.arc()` for inner and outer radii, and `d3.scaleOrdinal()` for colors. Data is loaded from `data.json` via `d3.json()`, and labels are positioned dynamically based on slice angles.

AI-generated description

Un exemple pour le TP.