Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axes

Public visualization

Viewing a saved revision (read-only)

fccad5c735aa4179afd7f2458c28ab15

Customizing Axes

0 stars3🌍 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.