Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE-7 Pie Chart

Public visualization

ICE-7 Pie Chart

0 stars1🌍 Public
66264kusuma@gmail.com
Last edited Mar 23, 2024
Created on Mar 23, 2024
Forked from Pie Chart

This example visualizes car sales by sales representative as a pie chart, with each slice representing the proportion of total sales amount attributed to a specific rep. The chart displays sales rep names and their corresponding sales percentages in a legend. The visualization loads CSV data from a GitHub repository using `d3.csv` and renders the pie chart with SVG paths. It uses `d3.pie` and `d3.arc` to generate the slices, `d3.scaleOrdinal` to assign distinct colors, and `d3.format` to display percentages. The legend is manually positioned using SVG groups and text elements.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed