Skip to main content
100%

ACT(6) HISTOGRAM

✓ Published0🌍 Public
BBhavyaMammai
Last edited Jun 14, 2023
Created on Jun 13, 2023
Forked from Hello VizHub

This histogram visualizes the relationship between age and average Body Mass Index (BMI) from health survey data, showing BMI distribution across age bins. The chart displays age on the x-axis and average BMI on the y-axis using orange rectangular bars. The code loads data via a CSV URL, converts string values to numbers, and computes BMI from height and weight fields. It uses D3 v7 APIs including `d3.csv`, `d3.bin`, `d3.scaleLinear`, `d3.axisBottom`, and `d3.axisLeft`. The visualization is rendered as an SVG with custom styling for ticks and labels.

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