Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart 2019

Public visualization

Viewing a saved revision (read-only)

11293edd565248948d6c15e010615c7a

Making a Bar Chart 2019

0 stars1🌍 Public
SSam Lite
Last edited Feb 13, 2020
Created on Feb 13, 2020
Forked from Making a Bar Chart

This example uses D3 v5 to render a horizontal bar chart of 2019 population estimates for the ten most populous countries, sourced from a CSV file. It maps population values to a linear scale for bar widths and country names to a band scale for vertical positioning, drawing SVG rectangles. The chart includes axes generated with `axisLeft` and `axisBottom`, while data loading and scaling use `csv`, `scaleLinear`, `scaleBand`, and `max`.

AI-generated description