Making a Bar Chart
✓ Published1🌍 Public
This example demonstrates a bar chart visualizing the top 10 most populous countries using 2018 population estimates from the United Nations World Population Prospects 2017. The chart displays population values with a linear scale on the x-axis and categorical country names on the y-axis using d3.scaleBand. Custom axes are styled with axis labels and tick formatting that abbreviates large numbers using d3.format. The visualization is rendered as SVG, with bars extending horizontally from the left margin.
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