🌍 Public
Viewing a saved revision (read-only)
de277b988b0b44c9aa9a0730264fc28c
Histogram
This histogram visualizes the average Body Mass Index of CDC survey participants by age, using binned age groups and an indigo bar chart overlaid on an SVG canvas. The code imports specific D3 v7 modules like `bin`, `scaleLinear`, `axisLeft`, and `axisBottom` to generate the binning, axes, and gridlines. It computes BMI from weight and height data loaded via `csv()`, then renders the bars with color fills and white strokes.
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