Skip to main content
100%

Customizing Axes

✓ Published3🌍 Public
Ddanrhymes
Last edited Nov 30, 2019
Created on Nov 30, 2019
Forked from Making a Bar Chart

This bar chart displays the population of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects. The visualization uses d3.scaleLinear for the x-axis and d3.scaleBand for the y-axis, with custom formatting via d3.format to abbreviate large numbers. Axis ticks are styled with d3.axisLeft and d3.axisBottom, while grid lines and axis labels are customized for clarity. The data is loaded from a CSV file using d3.csv and rendered as SVG rectangles.

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.

MIT Licensed

Similar vizzes