Skip to main content
100%

Pie Chart

✓ Published0🌍 Public
Tttummala17
Last edited Jul 1, 2022
Created on Jul 1, 2022
Forked from D3 Starter

This pie chart visualizes 2022 US auto sales by brand, showing each manufacturer's market share as a proportion of total sales. The chart uses D3 v5’s `pie` and `arc` generators to compute segment angles and render SVG paths, with a categorical color scale via `scaleOrdinal`. Sales percentages and totals are computed from a CSV dataset loaded using `d3.csv` from a Gist, and a legend displays brand names, percentage values, and sales in thousands. The visualization is rendered entirely as SVG, with labels positioned manually.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes