BMI by Age
✓ Published0🌍 Public
This visualization displays the average body mass index (BMI) segmented by age using a binned area chart. The code loads data from a CSV source, calculates BMI values, and renders bars with the d3.bin and d3.sum APIs. It utilizes d3.scaleLinear, d3.axisBottom, d3.axisLeft, and d3.area with curveBasis to construct the SVG output. Axes include gridlines and rotated labels, with the chart title and axis annotations styled in the d3.v7 framework.
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