Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
Oonika123
Last edited Nov 4, 2020
Created on Nov 4, 2020
Forked from Making a Bar Chart

This example displays a horizontal bar chart of country populations using D3 v5, with the data loaded from a CSV file via `d3.csv`. The chart uses `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis, rendering SVG rectangles with a steelblue fill. Axes are added with `d3.axisLeft` and `d3.axisBottom`, and the population values are incremented by a constant before rendering, as shown in the code.

AI-generated description
MIT Licensed

Similar vizzes