Skip to main content
100%

BACKUP - Donut Chart v2 - Le bon qui fonctionne

✓ Published0🌍 Public
MMaeva B
Last edited Sep 30, 2022
Created on Sep 30, 2022

A donut chart displays the popularity distribution of song lyrics across languages, aggregating the five most frequent languages (English, Spanish, German, French, Italian) into individual slices and grouping all remaining languages into an "others" slice. The chart uses d3.pie to compute arc angles and d3.arc to generate donut paths, with labels connected via polylines positioned using a second outer arc generator. Colors come from d3.schemeDark2 applied through a d3.scaleOrdinal, while data loads from a local JSON file via d3.json.

AI-generated description

Un exemple pour le TP.

MIT Licensed

Similar vizzes