Histogram of BMI by Age By Health Status
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 descriptionThis 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