Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making A Bar Chart

Public visualization

Making A Bar Chart

0 stars34🌍 Public
AAuliaAmirullah15
Last edited Apr 15, 2023
Created on Apr 13, 2023

A horizontal bar chart displays population estimates for ten countries, from China's 1.4 billion to Mexico's 130 million, using D3 v7. The code loads CSV data via d3.csv, converts population values, and renders SVG rectangles scaled with d3.scaleLinear and d3.scaleBand axes. d3.axisLeft and d3.axisBottom generate the country and population tick marks.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed