Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a bar chart

Public visualization

Viewing a saved revision (read-only)

c28f0bbd969b4c5e81e0502b3f65e5ba

Let's make a bar chart

0 stars2🌍 Public
Ssunilkrishnav
Last edited Mar 22, 2020
Created on Mar 22, 2020

This bar chart displays population estimates for the ten most populous countries, using horizontal bars ordered alphabetically by country name. The visualization loads data from a CSV file and renders SVG rectangles scaled by population magnitude. Built with D3 v5, the code uses `d3.csv`, `scaleBand`, `scaleLinear`, `axisLeft`, and `axisBottom` to construct the chart with labeled axes and steel-blue bars. Margins, a custom inner plotting area, and a 0.1 band padding define the layout.

AI-generated description

hi