Skip to main content
100%

making a bar chart

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

Similar vizzes