Skip to main content
100%

Tutorial

✓ Published1🌍 Public
HHilario Calderon
Last edited Sep 27, 2019
Created on Sep 25, 2019
Forked from Making a Bar Chart

This chart shows a horizontal bar graph comparing population values for individual names, with each bar’s length proportional to the amount from the dataset. The code loads data from a CSV file, multiplies each amount by 1,000, and renders it using D3 v5 with SVG. It uses `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis, while `d3.axisLeft` and `d3.axisBottom` generate the labeled axes. The bars are drawn as `rect` elements with a steelblue fill.

AI-generated description
MIT Licensed

Similar vizzes