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