Skip to main content
100%

Bar Chart in D3 v5 w/ our data

✓ Published0🌍 Public
Aalex-rind
Last edited Oct 11, 2019
Created on Oct 11, 2019

This bar chart displays the BMI values of individuals from a diabetes dataset, with each bar labeled by the person’s name and the y-axis representing BMI frequency. The chart uses D3 v5’s `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis, while `d3.axisBottom` and `d3.axisLeft` render the axes. Data is loaded as CSV via `d3.csv`, then parsed and mapped to numeric BMI values before being drawn as SVG rectangles with hover styling. The visualization follows a conventional margin layout.

AI-generated description

This simple bar chart is constructed from a TSV file storing the frequency of letters in the English language. The chart employs conventional margins and a number of D3 features:

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/3885304'>Bar Chart</a>

forked from <a href='http://bl.ocks.org/Golodhros/'>Golodhros</a>'s block: <a href='http://bl.ocks.org/Golodhros/6f8e6d1792416ee3770ff4ddd5c9594e'>Bar Chart in D3 v5</a>

gpl-3.0 Licensed

Similar vizzes