BMI by Age
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 descriptionThis 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