BMI by Age
✓ Published0🌍 Public
This example visualizes the relationship between age and average Body Mass Index (BMI) using a binned bar chart. The data is loaded via `d3.csv` from a GitHub gist, with BMI values calculated from weight and height measurements. The visualization uses D3 v7 APIs including `d3.bin`, `d3.scaleLinear`, `d3.axisBottom`, and `d3.axisLeft` to group ages into bins and display the average BMI per bin as purple rectangles on an SVG canvas. Axes are customized with tick styling and labels for both dimensions.
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