Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart-BMI

Public visualization

Bar Chart-BMI

0 stars0🌍 Public
CChaturyaAkhilaPallem@my.unt.edu
Last edited Mar 16, 2024
Created on Mar 16, 2024

This example visualizes the Body Mass Index (BMI) of ten individuals from a CSV dataset, using a bar chart to compare each person’s BMI value. The chart shows the BMI for each name, with bars representing the numeric BMI values. The visualization is built with D3.js v7, rendering SVG elements. It uses `d3.scaleBand` for the categorical x-axis and `d3.scaleLinear` for the y-axis, with `d3.axisBottom` and `d3.axisLeft` to display the axes. The data is loaded from the provided CSV file, and each bar’s height reflects the BMI, colored in steel blue.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed