Skip to main content
Public

Share visualization

Loading preview…

Sreekar pie Ice 7

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

Sreekar pie Ice 7

0
SSreekarveeravelly
Last edited Mar 29, 2022
Created on Mar 29, 2022
Forked from Pie Chart

This visualization shows 2022 U.S. auto sales by brand as a pie chart, with each slice colored and labeled via an interactive legend that displays both the brand name and its percentage of total sales alongside the raw sales figure in thousands. The chart is rendered using D3 v5’s `pie` and `arc` generators to compute the slice geometry, while `scaleOrdinal` assigns a fixed color palette to each brand. Data is loaded asynchronously from a CSV file via `d3.csv` and then processed to sum the YTD sales column for percentage calculations. The SVG output includes a center-aligned title and a legend positioned to the right of the pie.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed