Skip to main content
100%

Fork of Assignment 2 - Pie Chart

✓ Published0🌍 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
MIT Licensed

Similar vizzes