Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pie Chart Artistes

Public visualization

Fork of Pie Chart Artistes

0 stars0🌍 Public
AAnissa Belkelfa
Last edited Nov 30, 2022
Created on Nov 30, 2022
Forked from Pie Chart Artistes

A donut chart displays the distribution of music genres by percentage, with each slice labeled and colored distinctly. The visualization uses D3.js to load CSV data and render an SVG, employing `d3.pie` and `d3.arc` for the donut geometry, `d3.scaleOrdinal` with a custom color range, and d3-scale-chromatic for color handling. Hovering over a slice reveals a tooltip showing the precise percentage, calculated with `d3.sum`, while mouse events and CSS transitions manage tooltip visibility.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed