Skip to main content
100%

Customizing Axes

✓ Published0🌍 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
MIT Licensed

Similar vizzes