Skip to main content
100%

Making a bar chart

✓ Published0🌍 Public
Lleandermaerkisch
Last edited Aug 22, 2020
Created on Aug 22, 2020

This example visualizes the ten most populous countries as horizontal bars, drawn with SVG rectangles. It maps population values to bar lengths using a linear scale and country names to vertical positions with a band scale. The visualization is built with D3 v5, using `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to load data and render axes. The data comes from a CSV file and is processed by multiplying population figures by 1,000 before scaling.

AI-generated description
MIT Licensed

Similar vizzes