Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
CCatriona
Last edited Feb 25, 2020
Created on Feb 24, 2020

This bar chart displays the populations of the ten most populous countries, scaled linearly along the x-axis and using a band scale for categorical country labels on the y-axis. The visualization uses D3 v5 APIs including `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`, with data loaded from a CSV file and rendered as SVG rectangles. Population values are formatted in abbreviated units (e.g., "1.41B") using D3's `format` function, and a custom axis label and title are added via SVG text elements.

AI-generated description

Data source: etc.

MIT Licensed

Similar vizzes