Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Question1

Public visualization

Viewing a saved revision (read-only)

2913e6587f7a4ecb84f821c56ed21e85

Question1

0 stars1🌍 Public
MMandadi Nishita
Last edited Nov 2, 2024
Created on Nov 1, 2024
Forked from Pie Chart

This pie chart visualizes product sales distribution, with each slice sized proportionally to its revenue share and a corresponding legend displaying category names and percentage values. The chart uses d3.pie and d3.arc to generate the SVG paths, with a scaleOrdinal color scale assigning distinct hues to each segment. Data is loaded asynchronously from a CSV via d3.csv, and percentage labels are formatted with d3.format. The total sum of all values is calculated to compute each category’s share.

AI-generated description