Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Making a bar chart

Public visualization

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

Comments

Sign in to join the discussion.

MIT Licensed