Skip to main content
100%

ICE - 7 Pie Chart for Car Sales (11508271)

✓ Published0🌍 Public
Aabdulmoin9624
Last edited Mar 27, 2022
Created on Mar 27, 2022
Forked from Hello VizHub

This example visualizes top brand car sales in the USA for 2020 as a pie chart, with each slice labeled in thousands and a legend listing brands and their corresponding sales values. It uses d3.csv to load the data from a remote CSV file, then d3.pie and d3.arc to generate the chart’s paths, while d3.scaleOrdinal assigns colors to slices. All rendering is done via SVG, with text elements placed using arc.centroid for slice labels and a custom legend built from appended rectangles and text.

AI-generated description
MIT Licensed

Similar vizzes