🌍 Public
Viewing a saved revision (read-only)
49eb82cc7f0f48e98239b319c2aa3172
Activity_7.1
This pie chart visualizes the distribution of total sales across product categories from an autosales CSV dataset, with each slice’s percentage and value in thousands shown in a side legend. The chart uses D3 v7’s `pie` and `arc` generators to compute and draw the segments, while `scaleOrdinal` assigns distinct colors. Data is loaded asynchronously via `d3.csv`, and sales strings are cleaned by removing dollar signs and commas before calculating totals and percentages.
AI-generated description