Histogram
✓ Published0🌍 Public
This histogram visualizes the distribution of average body mass index (BMI) across different ages, using survey data loaded from a CSV file. The chart renders orange bars in an SVG canvas, with age on the x-axis and average BMI on the y-axis. The code uses D3 v7 APIs including `d3.bin` to group data into bins, `d3.scaleLinear` for both axes, and `d3.axisBottom` and `d3.axisLeft` to generate tick marks. Data preprocessing calculates BMI from height and weight values.
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