Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axes

Public visualization

Viewing a saved revision (read-only)

124fe44b88fd41b9a1e4ee64a24e9209

Customizing Axes

0 stars0🌍 Public
AAnthony Lee
Last edited Sep 11, 2022
Created on Sep 7, 2022
Forked from Making a Bar Chart

This example shows a horizontal bar chart of national populations, with country names on the y-axis and population counts on the x-axis. The chart uses D3 v5’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct a clean, margin-based SVG layout. Population values from the CSV are parsed and multiplied by 1000, and bars are rendered as `rect` elements with a steelblue fill.

AI-generated description