Activity 6 Task 5 Histogram
✓ Published0🌍 Public
This histogram shows the average Body Mass Index across age groups from CDC survey data, with BMI calculated from weight and height. The visualization uses D3 v7’s `bin` generator to group ages, then renders orange rectangles scaled by `scaleLinear` and axes with `axisBottom` and `axisLeft`. Data is loaded via `csv`, and SVG output displays gridlines and labels for Age and Average Body Mass Index.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules. This 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