🌍 Public
Making a bar chart
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 descriptionThis 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
Comments
Sign in to join the discussion.