🌍 Public
Viewing a saved revision (read-only)
490b90e3b7d146e8843a6f581e3ed766
BMI by Age
This visualization displays the relationship between age and average body mass index using binned bar charts. The data comes from a CSV file, with BMI calculated from weight and height values. The code imports D3 modules through ES6 syntax, using scaleLinear, axisBottom, axisLeft, bin, and sum APIs to create the SVG rendering. Each bar represents an age bin, with its height reflecting the average BMI for that group. Axis tick lines extend across the chart to create a grid-like structure, with labels for both axes and a title.
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.