Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie chart ICE 7

Public visualization

Viewing a saved revision (read-only)

a917122f4c204802bfde6500b89b6a38

Pie chart ICE 7

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