Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
KKatStam
Last edited Jul 11, 2019
Created on Jul 10, 2019
Forked from Untitled

This example shows a bar chart of population data for the top 10 most populous countries, with horizontal bars and labeled axes. The visualization uses D3 v5 to load and scale the dataset, employing `scaleLinear` for the x-axis and `scaleBand` for the y-axis. The code imports specific D3 modules via ES6 syntax, uses `axisLeft` and `axisBottom` for ticks, and formats numbers with `format('.3s')`. It also removes default axis domains and tick lines for a cleaner presentation.

AI-generated description
MIT Licensed

Similar vizzes