PIE CHART pca
✓ Published0🌍 Public
This example shows the distribution of BMI values from a loaded CSV dataset, categorizing individuals into underweight, normal weight, overweight, and obese groups as a pie chart. It uses D3 v7 to fetch and parse the CSV, compute category counts and percentages, and render the chart as SVG with a color scale and legend. The chart includes an interactive tooltip and highlights the proportion of each category, with the pie arc drawn using `d3.arc` and data bound through `d3.pie`.
AI-generated descriptionMIT Licensed