Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

making a bar chart

Public visualization

Viewing a saved revision (read-only)

26a16112e0a542b4a7e38cac177f49ab

making a bar chart

0 stars0🌍 Public
Nnexus1058
Last edited Dec 13, 2020
Created on Dec 12, 2020
Forked from customizing axes

This example shows horizontal bars representing the populations of the ten most populous countries using a bar chart. The D3 v6 code loads the data from a CSV file, scales the values, and renders the bars as SVG rectangles. It uses `scaleLinear` for the width axis and `scaleBand` for the categorical country names, with margins set via an SVG transform.

AI-generated description