🌍 Public
Making a Bar Chart
This bar chart visualizes the top 10 most populous countries in 2018, using data from the United Nations World Population Prospects 2017. It demonstrates customized D3 v5 axes, including a formatted linear scale for population values with tick marks that abbreviate numbers (e.g., "B" for billions) and a band scale for country names. The chart is rendered as an SVG with steelblue bars, and the code uses D3 methods like `scaleLinear`, `scaleBand`, `axisBottom`, `axisLeft`, and `csv` to load and parse the data.
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
Comments
Sign in to join the discussion.