Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customising Axes

Public visualization

Viewing a saved revision (read-only)

c5afeb6dd03242b484ec3d3433409a13

Customising Axes

0 stars1🌍 Public
JJadeITNT
Last edited Nov 26, 2021
Created on Nov 18, 2021
Forked from Making a Bar Chart

This visualization shows the ten most populous countries as a horizontal bar chart, with custom formatting applied to both the x-axis and y-axis. Population values are abbreviated using D3’s `format('.3s')` and then converted from billions to a friendlier label, while the y-axis labels are cleaned by removing tick lines and the domain path. The chart uses `scaleLinear` for the population axis, `scaleBand` for the country categories, and `axisBottom` and `axisLeft` for rendering, with data loaded from a CSV file via `d3.csv`.

AI-generated description