Histogram
✓ Published0🌍 Public
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
MIT Licensed