Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_7.1

Public visualization

Activity_7.1

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

Comments

Sign in to join the discussion.

MIT Licensed