BMI by Age
✓ Published0🌍 Public
A bar chart visualizes the relationship between age and average Body Mass Index (BMI) by binning ages into intervals and computing the mean BMI for each bin. The chart uses D3.js (v7) with SVG rendering, employing `scaleLinear` for axes, `bin` to group data, and `axisBottom`/`axisLeft` for tick marks. Data is loaded as CSV from a GitHub gist, with BMI calculated from height and weight fields. The chart includes labeled axes and a title, with bars colored green.
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