Skip to main content
100%

Fork of D3 Starter

✓ Published0🌍 Public
Bbalaaswitha@gmail.com
Last edited Oct 26, 2025
Created on Oct 26, 2025
Forked from D3 Starter

This pie chart displays the distribution of geometric shapes grouped into four categories—Round, Triangle, Quadrilateral, and Polygon—based on their number of sides. The visualization loads a CSV file containing shape properties such as area and perimeter, then uses d3.csv to parse the data and d3.rollups to aggregate counts per category. Slices are rendered using d3.pie and d3.arc, with colors assigned via d3.scaleOrdinal and d3.schemeSet2. A legend is appended manually to the SVG, and the chart updates based on the selected value mode defined in the code.

AI-generated description
MIT Licensed

Similar vizzes