Skip to main content
100%

BMI by Age

✓ Published0🌍 Public
NNukaShravanKumar
Last edited Jul 20, 2023
Created on Jul 20, 2023
Forked from Hello VizHub

This scatterplot visualization displays average Body Mass Index (BMI) across age groups, using data from the CDC Dataset. The BMI values are computed from weight and height measurements using the standard formula (weight in pounds divided by height in inches squared, multiplied by 703). The visualization bins the data by age using `d3.bin` and renders orange SVG rectangles whose heights represent the average BMI for each age range. Scales and axes are created with `d3.scaleLinear`, `d3.axisBottom`, and `d3.axisLeft`, while the data is loaded via `d3.csv` from a GitHub gist.

AI-generated description

This visualization is a scatterplot of Body Mass Index by gender from the CDC Dataset.

Body Mass Index is calculated using the following formula: [weight (lb) / height (in) / height (in)] x 703

MIT Licensed

Similar vizzes