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)

57ca92470f0e4ae99a713dd20c087f0a

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

0 stars0🌍 Public
SSrilekha24
Last edited Mar 5, 2022
Created on Mar 5, 2022

A horizontal bar chart displays population figures for ten countries, with bars ordered by descending value from China to Mexico. The visualization uses D3.js v7 with an SVG rendering approach, loading data from a CSV file via `d3.csv` and scaling populations by 1,000. Axes are generated through `d3.axisLeft` and `d3.axisBottom`, while `d3.scaleLinear` and `d3.scaleBand` position and size the bars. Bars appear in steel blue on a clean, margin-based layout.

AI-generated description