Diabetes Self-Management Practices Pie Chart
This pie chart shows the distribution of five diabetes self-management practices—diet, exercise, medication, monitoring, and education—with each slice labeled by its percentage of the total. The visualization uses a donut-style arc layout with hover interactions that display the practice name, raw value, and percentage in a tooltip. It is built with D3’s `pie`, `arc`, and `scaleOrdinal` functions, rendering SVG paths and a legend. The sample data is hardcoded in the script, and the chart adapts its radius to the container’s dimensions.
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.