Activity 6
✓ Published2🌍 Public
This pie chart visualizes the distribution of heart disease cases, showing 138 instances with the condition against 100 without. The D3.js code uses `d3.scaleOrdinal` for categorical coloring, `d3.pie` for arc generation, and `d3.arc` for path construction, rendering to an SVG canvas. Labels appear at arc centroids, while a legend below maps colors to categories. The data is hardcoded in the script.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed