Skip to main content
100%

BMI by Age

✓ Published0🌍 Public
Jjayanthkumar22
Last edited Jun 14, 2023
Created on Jun 14, 2023
Forked from Hello VizHub

A scatterplot-style chart visualizes average Body Mass Index across age, binned into uniform intervals, with orange bars rising from the baseline to show BMI values per age group. The visualization uses D3 v7’s `bin` generator to group CDC dataset records by age, then computes each bin’s mean BMI via `sum` before rendering as SVG rectangles. Linear scales map age and BMI to pixel coordinates, while `axisBottom` and `axisLeft` add tick marks with custom labels, and axes are styled with muted colors and sans-serif typography.

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