Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

BACKUP - Donut Chart v2 - Le bon qui fonctionne

Public visualization

BACKUP - Donut Chart v2 - Le bon qui fonctionne

0 stars0๐ŸŒ 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.

Comments

Sign in to join the discussion.

MIT Licensed