BMI by Age
✓ Published0🌍 Public
This histogram displays the average body mass index (BMI) of survey respondents across different ages, using orange bars on an SVG chart. It loads a remote CSV dataset, bins the age values using `d3.bin`, scales the axes with `d3.scaleLinear`, and computes per-bin averages with `d3.sum`. Axes are rendered via `d3.axisBottom` and `d3.axisLeft`, with labels and a title added as SVG text elements.
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