Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of Pie Chart

Public visualization

Fork of Pie Chart

0 stars0๐ŸŒ Public
Aamiralitah
Last edited Jul 1, 2022
Created on Jul 1, 2022
Forked from Pie Chart

This fork of a pie chart displays 2022 US auto sales by brand, sourced from a gist-hosted CSV file, with each brand's market share represented as a colored slice. The chart uses D3 v5 APIs `d3.select`, `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` to generate SVG paths, while a hand-built legend shows the brand name, its percentage of total sales, and sales value in thousands. The accompanying D3 code loads the CSV via `d3.csv` and computes totals to format the percentage and value labels.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed