Skip to main content
Public

Share visualization

Loading preview…

BMI by Age

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

BMI by Age

0
UUmarani Vemula
Last edited Jun 14, 2023
Created on Jun 14, 2023
Forked from Hello VizHub

This visualization shows the average Body Mass Index (BMI) across different age groups, using a bar chart where each bar represents a binned age range. The chart, built with D3 v7, loads data from a GitHub-hosted CSV containing survey responses and computes BMI from height and weight values. The code employs D3's `bin` utility to group ages, `scaleLinear` for both axes, and `axisLeft`/`axisBottom` for chart axes, with bars drawn as SVG `rect` elements and axis labels added via SVG `text`.

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.

Comments

Sign in to join the discussion.

MIT Licensed