Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

BMI by Age

Public visualization

Viewing a saved revision (read-only)

34f9532e74e44129b025198dab1899b0

BMI by Age

0 stars0🌍 Public
Ppardha1411
Last edited Jun 14, 2023
Created on Jun 14, 2023
Forked from Hello VizHub

This visualization presents a histogram of average Body Mass Index (BMI) across age groups, using data from the CDC dataset. The x-axis shows age with 14 ticks, while the y-axis displays the average BMI value, calculated using the formula weight/height² x 703. The chart uses d3.bin to group the data into age bins and displays each bin as an orange rectangle, with the height representing the average BMI within that age range. The visualization uses d3.scaleLinear for both axes and d3.axisBottom and d3.axisLeft for the tick marks, with custom styling applied through CSS.

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