Skip to main content
100%

Histogram of BMI by Age By Health Status

✓ Published0🌍 Public
RRidhima Saxena
Last edited Dec 9, 2021
Created on Dec 9, 2021

This histogram displays the average Body Mass Index across age groups for a selected health status. A dropdown menu toggles between Excellent, Very Good, Good, Fair, and Poor health categories, filtering the CDC dataset accordingly. The visualization uses D3 v7 with `d3.bin` to group ages and `scaleLinear` axes, rendered as SVG rectangles. React manages the component state, while BMI is calculated from weight and height using the formula weight/height² × 703. Axes include grid lines and rotated labels for readability.

AI-generated description

This visualization is a histogram of Body Mass Index by health status from the CDC Dataset.

Health Status can be toggled using the drop down menu

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

MIT Licensed

Similar vizzes