Skip to main content
Public

Share visualization

Loading preview…

Fork of 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

Fork of Pie Chart

2
Aaashrithd4
Last edited Mar 26, 2022
Created on Mar 26, 2022
Forked from Pie Chart

This example presents a pie chart of 2022 U.S. auto sales by brand, showing the proportional market share of each manufacturer. It loads CSV data from a GitHub gist using `d3.csv` asynchronously, then uses `d3.pie` and `d3.arc` to generate the pie segments in an SVG. A legend on the right displays each brand’s name and its sales total in thousands, formatted with `d3.format`. Colors are assigned via `d3.scaleOrdinal` with an explicit range of hex values.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed