🌍 Public
Viewing a saved revision (read-only)
c26c5642cabf45de8485a16d87e953b8
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.