BMI by Age
✓ Published0🌍 Public
This example visualizes the average body mass index (BMI) across different ages using a bar chart. The data is loaded from a CSV file and processed to calculate BMI from height and weight values. The chart is rendered as SVG using D3 v7, with scales, axes, and rectangular bins created through the `d3.bin` and `d3.area` APIs. Custom margins and tick styling are applied via CSS to present the distribution clearly.
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