Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Tutorial 1

Public visualization

Viewing a saved revision (read-only)

21831e4e30224f8f9556040c24f0f31e

Tutorial 1

0 stars1🌍 Public
Pperamranji
Last edited Mar 30, 2025
Created on Mar 30, 2025

A horizontal bar chart displays the top ten countries by population in the year 2000, sourced from a local CSV file. Bars are rendered as SVG rectangles using D3 v7’s scaleBand for the categorical country axis and a linear scale for population values. The chart includes formatted axis ticks via d3.axisBottom with a .2s format, a left axis, and a centered axis label. Data is loaded asynchronously with d3.csv and processed in a useData function.

AI-generated description