Skip to main content
100%

Fork of Pie Chart

✓ Published0🌍 Public
Sshivendrarai
Last edited Jun 20, 2022
Created on Jun 20, 2022
Forked from Pie Chart

This visualization displays 2022 US auto sales by brand as a donut-style pie chart, with each brand's proportional market share represented by a colored arc segment. The chart includes a custom legend showing each brand, its sales volume in thousands, and its percentage of total sales. The code loads CSV data from a GitHub Gist and renders the chart as an SVG using D3 v5's `pie`, `arc`, and `scaleOrdinal` functions for segment layout and color assignment. Legends are manually constructed with appended `rect` and `text` elements, with formatting applied via D3's `format` API.

AI-generated description
MIT Licensed

Similar vizzes