Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a bar chart

Public visualization

Viewing a saved revision (read-only)

1ea0da43d3f148bea1b4423896cda9fd

Making a bar chart

0 stars0🌍 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