Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Let's make a Bar Graph with D3.js

Public visualization

Viewing a saved revision (read-only)

6ed59504d085428ba1c85a44d94874b0

Fork of Let's make a Bar Graph with D3.js

0 stars0🌍 Public
Vvegurusaiprathyusha
Last edited Mar 7, 2022
Created on Mar 7, 2022

This example shows a horizontal bar chart of the world’s ten most populous countries, using population values from a CSV file. It renders SVG bars with a linear scale for population and a band scale for country names, adding axis labels via `axisLeft` and `axisBottom`. The code imports `select`, `csv`, `scaleLinear`, `scaleBand`, `max`, and the axis functions from D3 v7, and transforms the raw population numbers by multiplying by 1000 before drawing.

AI-generated description