Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Donut Chart v2

Public visualization

Viewing a saved revision (read-only)

f7436f6ed8bc4d3f9a6a39b7fe13f5f1

Fork of Donut Chart v2

0 stars1🌍 Public
MMaeva B
Last edited Sep 28, 2022
Created on Sep 28, 2022
Forked from Donut Chart v2

This donut chart displays proportional data from a JSON file (data.json) with country names and numeric sums, rendered as an SVG using D3.js v4. The visualization uses a pie layout with a half-radius inner hole and divergent color scheme from d3-scale-chromatic. Labels are positioned outside the arcs using polyline connectors and text elements, with the arc generator determining slice geometry and outerArc handling label placement. The example demonstrates D3’s modular approach to building interactive, data-driven graphics.

AI-generated description

Un exemple pour le TP.