Skip to main content
100%

Donut Chart v2

✓ Published1🌍 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.

MIT Licensed

Similar vizzes