Skip to main content
100%

Making a BarChart - Formatting Axes

✓ Published0🌍 Public
Bbakstorage00001
Last edited Jan 31, 2022
Created on Jan 30, 2022
Forked from Making a BarChart

This bar chart displays the top 10 most populous countries using 2018 population estimates from a CSV file, with population values converted from thousands to absolute numbers. The visualization uses D3 v5’s `scaleLinear` for the x-axis, `scaleBand` for categorical country labels, and `axisBottom`/`axisLeft` for formatted ticks, including a custom `format` function that abbreviates large numbers (e.g., turning G into B). SVG rendering applies a margin convention, removes default axis lines, and styles bars and text via CSS.

AI-generated description

Population from the year 2018 estimate.

MIT Licensed

Similar vizzes