🌍 Public
Viewing a saved revision (read-only)
2ccbe6991f584f8c9862f03bd535a1f1
Activity 7 Question 2
This area chart displays the average BMI across 5-year age bins, based on a diabetes dataset from a GitHub repository. The visualization groups individuals by age and calculates the mean BMI for each group, showing the relationship between age and body mass index. Built with D3.js v6, the chart uses `d3.rollups` to bin data, `d3.mean` for aggregation, and `d3.area` to generate the filled path. SVG axes are rendered with `d3.axisBottom` and `d3.axisLeft`, with linear scales mapping age and BMI values.
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.