Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Bar Chart

Public visualization

Viewing a saved revision (read-only)

5c93611c0ffc4742bd071b1cc641d586

D3 Bar Chart

0 stars1🌍 Public
Kkkwyoung
Last edited Aug 12, 2020
Created on Aug 7, 2020
Forked from D3 Bar Chart

This bar chart displays the populations of the world’s ten most populous countries, with each bar’s length proportional to its population. The chart uses a linear scale for the x-axis and a band scale for the categorical y-axis, drawing the bars as SVG rectangles via the D3.js `select`, `scaleLinear`, `scaleBand`, and `axisBottom` APIs. Population values are parsed from a local CSV file, and axis ticks are formatted using D3’s `format` to abbreviate large numbers, while the chart’s title and axis labels are added as SVG text elements.

AI-generated description

population of top 10 most populous contries