Skip to main content
Public

Share visualization

Loading preview…

ICE-7 Pie Chart

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

ICE-7 Pie Chart

1
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