Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Histogram

Public visualization

Viewing a saved revision (read-only)

565c4369077d421bbaf52f8a643ceeb7

Histogram

0 stars0🌍 Public
VVarshareddy2912
Last edited Jun 24, 2023
Created on Jun 24, 2023
Forked from Hello VizHub

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 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.