Activity6_3
✓ Published0🌍 Public
This example shows the relationship between age and average body mass index (BMI) in a bar chart, using data loaded from a CSV file. It calculates BMI from height and weight fields, then uses `d3.bin` to group ages into bins and plots the mean BMI for each bin. The chart is rendered with SVG in D3 v7, with linear scales for both axes, custom tick formatting, and styled bars and labels.
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