Skip to main content
100%

Making a bar chart

✓ Published1🌍 Public
DDaniel García
Last edited Mar 19, 2020
Created on Mar 19, 2020

This example visualizes the population of the top 10 most populous countries in 2018, sourced from the World Population Prospects 2017. The bar chart encodes country on the y-axis using a band scale and population on the x-axis using a linear scale. Built with D3 v5, the visualization renders as an SVG, using `scaleLinear` and `scaleBand` for axes, and `axisLeft` and `axisBottom` for tick labels. Population values are read from a CSV file and multiplied by 1000 to reflect actual figures. Steelblue rectangles represent the data.

AI-generated description

This barchart shows population of the top 10 most populous coutries. The data comes from the year 2018 estima in World Population Prospects 2017

MIT Licensed

Similar vizzes