Skip to main content
100%

Fork of Donut Chart v2

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

MIT Licensed

Similar vizzes