🌍 Public
Viewing a saved revision (read-only)
b85fb477203248d6a26657673d59145c
Fork of React & D3 Starter
This pie chart shows the distribution of exercise levels across 100 individuals, categorizing weekly exercise hours into low, medium, and high groups. The code uses d3.csv to load lifestyle data, d3.pie and d3.arc to generate the slices, and d3.scaleOrdinal for the color scheme. SVG elements render the chart with percentage labels positioned via labelArc centroids, alongside a legend displaying category counts. The visualization applies d3.js v7, featuring a clean white background, shadow effects, and cursive typography throughout.
AI-generated description