Skip to main content
100%

Activity_7.1

✓ Published0🌍 Public
Jjampani921@gmail.com
Last edited Nov 6, 2024
Created on Nov 6, 2024

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
MIT Licensed

Similar vizzes