Viewing a saved revision (read-only)
356e1c3188c64ab2b8ff794292064c6c
Fork of Making a Bar Chart
This bar chart displays the population of the top 10 most populous countries using 2018 estimates from the United Nations World Population Prospects 2017. The visualization uses a horizontal bar layout, with countries on the y-axis and population on the x-axis. The code employs D3 v5's `scaleLinear` and `scaleBand` for scaling, and `axisBottom` and `axisLeft` for axes, with custom tick formatting that converts "G" to "B" for billions. The chart is rendered as SVG and includes a title and axis label.
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.