BMI by Age
✓ Published0🌍 Public
This example shows the average Body Mass Index (BMI) of individuals binned across age groups, with the x-axis displaying age and the y-axis displaying average BMI. The data is loaded from a CSV file hosted on GitHub, with BMI calculated from weight and height columns. Using D3 v7, the visualization employs scales, axes, and a binning function to aggregate the data. It renders orange rectangles for each bin, with axis labels and a title, demonstrating D3's `csv`, `scaleLinear`, `axisBottom`, `axisLeft`, and `bin` APIs.
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