Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE - 7 Pie Chart for Car Sales (11508271)

Public visualization

Viewing a saved revision (read-only)

b6753c42b6a84165ba833218e9afcc57

ICE - 7 Pie Chart for Car Sales (11508271)

0 stars0🌍 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