Skip to main content
100%

Fork of React & D3 Starter

✓ Published0🌍 Public
Kkarthikpavan1198@gmail.com
Last edited Mar 29, 2026
Created on Mar 29, 2026
Forked from 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
MIT Licensed

Similar vizzes