Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart Axes

Public visualization

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.

Comments

Sign in to join the discussion.

MIT Licensed