Skip to main content
100%

Fork of pie chart ICE-7

✓ Published1🌍 Public
118121a1545
Last edited Oct 26, 2025
Created on Oct 26, 2025

This fork of a pie chart visualizes the distribution of campus snacks by category, aggregating counts from a CSV file and displaying each category’s share with percentage labels outside the slices. It renders an SVG using d3.pie, d3.arc, and d3.rollup to aggregate data, while d3.scaleOrdinal with schemeTableau10 assigns colors. A separate HTML legend lists categories with their counts, and the tooltip shows exact values. The chart loads data asynchronously via d3.csv and uses d3.format for percentage display.

AI-generated description
MIT Licensed

Similar vizzes