Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axes

Public visualization

Viewing a saved revision (read-only)

e2e8be7cd5bf498494487fbbc0b2bcea

Customizing Axes

0 stars0🌍 Public
RRaiyanRashid86
Last edited Jan 6, 2022
Created on Jan 6, 2022
Forked from Making a Bar Chart

This example shows a horizontal bar chart of the top 10 countries by population as of 2022, using data from Worldometer. The chart uses D3 v7 with SVG rendering, employing `scaleLinear` for the x-axis, `scaleBand` for the y-axis, and custom tick formatting via `format('.3s')` to display numbers in billions. Both `axisBottom` and `axisLeft` are customized by removing domain lines and tick marks for a cleaner visual, with all bars rendered as styled SVG rectangles.

AI-generated description

Top 10 Countries in the World by Population (as of 2022). Data taken from Worldometer: Population by Country (2022).