Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Basic Bar Chart - Country Population

Public visualization

Viewing a saved revision (read-only)

3970624202a848a99afbfca1e5e02af4

Basic Bar Chart - Country Population

0 stars0🌍 Public
11995ana
Last edited Apr 2, 2020
Created on Apr 2, 2020

A basic bar chart displays population sizes for ten countries, with horizontal bars sorted by country name, using an SVG rendering and D3 v5. The visualization encodes population values through bar length via `d3.scaleLinear` and country names on a categorical band scale, `d3.scaleBand`. Axes are generated with `d3.axisLeft` and `d3.axisBottom`, while data loading and joining rely on `d3.csv` and the enter selection pattern. The chart’s styling applies a steelblue fill to all rectangles.

AI-generated description