Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of pie chart ICE-7

Public visualization

Fork of pie chart ICE-7

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

Comments

Sign in to join the discussion.

MIT Licensed