Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a bar chart

Public visualization

Viewing a saved revision (read-only)

c8271e1f4fd34923ba3236c5f95c0f8f

Making a bar chart

0 stars1🌍 Public
YYifei Liu
Last edited Aug 26, 2020
Created on Aug 25, 2020

This bar chart displays the population of the top ten most populous countries, using horizontal bars ordered from largest to smallest. The visualization loads data from a CSV file with D3 v5, then uses `scaleLinear` for the x-axis, `scaleBand` for the y-axis, and `axisLeft` and `axisBottom` to render the axes. Rectangles are appended to an SVG container, with their widths scaled proportionally to population values.

AI-generated description