Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart-BMI

Public visualization

Viewing a saved revision (read-only)

3db7d55f27b5440bb4cb50b998536771

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