Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

d3

Public visualization

Viewing a saved revision (read-only)

e1612159c5b64c32bddd85eafef2093d

d3

0 stars0🌍 Public
Jjackzzryanzz
Last edited Jun 27, 2023
Created on Jun 26, 2023
Forked from D3 Starter

This example shows a horizontal bar chart comparing the populations of eight countries, from China’s 1.4 billion down to Bangladesh’s 166 million. It uses the d3.v7 library with the `csv`, `select`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` APIs to load data from a CSV file and render SVG rectangles. Axes are styled, with population labels formatted in billions using the `.3s` format.

AI-generated description