Making a bar chart
✓ Published0🌍 Public
This example shows the top 10 most populous countries in 2018 using a horizontal bar chart, with population values from the United Nations World Population Prospects. The chart uses D3 v5 to load the CSV data, scale linear for the x-axis and scale band for the y-axis, and customizes the axis with formatted tick labels and removed gridlines. Bars are rendered as SVG rectangles.
AI-generated descriptionThis bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.
MIT Licensed