Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

BMI by Age

Public visualization

Viewing a saved revision (read-only)

848d87685ce64b069c3beac57df5c23c

BMI by Age

0 stars1🌍 Public
Iindushashi.g@gmail.com
Last edited Jun 12, 2023
Created on Jun 10, 2023

This visualization displays average Body Mass Index (BMI) across different ages using a bar chart where each bar represents a binned age group. The chart uses D3's `bin` and `scaleLinear` functions to aggregate the CDC dataset into age ranges, with `avgBMI` calculating the mean BMI per bin. Bars are rendered as SVG rectangles with orange fills and white strokes, while axes are generated via `axisBottom` and `axisLeft` with custom tick styling. The BMI values are computed from weight and height measurements using the standard formula, with data loaded from a remote CSV source.

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