Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of Pie Chart Artistes

Public visualization

Viewing a saved revision (read-only)

61b2861ebe7f4692944722d767dbf5e0

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