Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Assignment 2 - Pie Chart

Public visualization

Viewing a saved revision (read-only)

d9cd7f6bea2544c09c5b49127ff5691d

Fork of Assignment 2 - Pie Chart

0 stars0🌍 Public
Gganeshseeram2405@gmail.com
Last edited Apr 13, 2024
Created on Apr 13, 2024

This fork of a D3 pie chart visualizes Superstore sales data, aggregated by product category from a CSV file. The SVG chart displays each category as a colored slice with its name and total sales value labeled directly on the arc. The code uses D3's `pie`, `arc`, `scaleOrdinal`, and `schemeCategory10` APIs to generate the geometry and colors, and it computes category totals with the `group` and `sum` functions. The visualization is rendered into an SVG element with a fixed width and height.

AI-generated description