Skip to main content
100%

Pie chart ICE 7

✓ Published0🌍 Public
Kkakumanusreya
Last edited Mar 28, 2023
Created on Mar 28, 2023
Forked from Pie chart ICE 7

A pie chart displays the distribution of hobbies among students in a class, with each slice sized by the number of people (Nfpeople) and labeled in a legend showing the hobby name, its percentage of the total, and the raw count. The visualization uses D3 v5 with the `pie` and `arc` generators to create SVG paths, `scaleOrdinal` for a categorical color palette, and `format` for tick labels. Data is loaded asynchronously from a CSV file hosted on GitHub via `d3.csv`, and the render function appends pie slices and legend elements to an SVG canvas.

AI-generated description
MIT Licensed

Similar vizzes