Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart Axes

Public visualization

Viewing a saved revision (read-only)

8bfc56c55fee48bb81081d72961a6e08

Bar Chart Axes

0 stars1🌍 Public
AAjit Singh
Last edited Dec 31, 2020
Created on Dec 29, 2020

This example shows a horizontal bar chart ranking the ten most populous countries, with population values formatted in billions and a labeled x-axis. Built with D3 v5, it uses `scaleLinear` and `scaleBand` to map population and country names, while `axisBottom` and `axisLeft` generate the axes. The chart reads from a CSV file, renders as SVG, and removes default axis domain lines for a cleaner look.

AI-generated description

An example including some commonly used features of SVG.