Histogram of BMI by Age By Gender
This interactive visualization displays the relationship between age and average Body Mass Index (BMI) using a histogram, with a dropdown menu to switch between male and female data from the CDC dataset. The chart uses slanted-blue bars to show average BMI values within equal-width age bins. Built with React and D3.v7, it employs `scaleLinear`, `bin`, and `axisBottom`/`axisLeft` APIs to compute scales, bin the data, and render axes. The SVG graphic is generated declaratively, with BMI calculated from weight and height using the formula shown.
AI-generated descriptionThis visualization is a histogram of Body Mass Index by gender from the CDC Dataset.
Gender 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