Fork of Diabetes Self-Management Practices Pie Chart
This pie chart visualizes the distribution of five diabetes self-management practices—diet, exercise, medication, monitoring, and education—showing their relative contributions as percentages. Built using d3’s `pie`, `arc`, and `scaleOrdinal` APIs, the donut-style chart displays percentage labels on each slice and includes an interactive tooltip on hover. A legend identifies each practice by color, with data drawn from a hardcoded sample array. The chart is rendered as an SVG with a calculated radius, and the colors come from the `schemeTableau10` palette.
AI-generated descriptionThis project visualizes the distribution of various self-management practices for diabetes using a pie chart. The chart provides an intuitive way to understand how different practices contribute to diabetes management, emphasizing the importance of diet, exercise, medication, monitoring, and education.