Activity 6 task 5
✓ Published0🌍 Public
This chart shows the average Body Mass Index (BMI) by age, computed from a CSV dataset of individual health records. The visualization bins ages into groups and displays the mean BMI for each bin as a blue bar, using a linear x-scale for age and a linear y-scale for BMI. Implemented with D3 v7, it imports utilities like `scaleLinear`, `bin`, `sum`, and `axisBottom` to bin data, compute averages, and render the axes and bars as SVG shapes. The chart is rendered through VizHub, with a styled baseline and clear axis labels.
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.
MIT Licensed