Skip to main content
100%

Question1

✓ Published1🌍 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
MIT Licensed

Similar vizzes