Skip to main content
100%

Fork of Customizing Axes final (chart2)

✓ Published0🌍 Public
AAbdouEnsaj
Last edited Sep 8, 2022
Created on Sep 7, 2022
Forked from Customizing Axes

This bar chart displays the population of the top 10 most populous countries in 2018, based on United Nations estimates. The visualization customizes D3 axes, using a linear scale for population and a band scale for country names, with formatted tick labels that convert values to billions. The chart includes a titled axis label, removes default axis domains and lines, and styles text, ticks, and rectangles via CSS. The code employs d3.csv, d3.scaleLinear, d3.scaleBand, d3.axisLeft, and d3.axisBottom to render the SVG.

AI-generated description

This 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.

See also the first bar chart visualization that this one builds on: Making a Bar Chart.

MIT Licensed

Similar vizzes