Skip to main content
100%

ICE-7 PIE CHART Rithvik Reddy Krishnaraj Rajmohan

✓ Published0🌍 Public
RRithvik
Last edited Oct 26, 2025
Created on Oct 26, 2025
Forked from HTML Starter

This example shows the distribution of a categorical variable, `favorite_fruit`, across twelve survey responses as a static pie chart. Each slice is labeled with its fruit name and count, and a matching color-coded legend lists the totals. The visualization is generated using D3 version 7, with data loaded from a CSV via `d3.csv` and `d3.autoType`. Category counts are computed with `d3.rollups`, and the pie geometry is built using `d3.pie` and `d3.arc`, with the final SVG rendered on a canvas sized 520 by 380 pixels.

AI-generated description
MIT Licensed

Similar vizzes