Skip to main content
100%

BMI by Age

✓ Published0🌍 Public
Vvineelaramulapalli32
Last edited Jul 17, 2023
Created on Jul 17, 2023
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes