Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a bar chart

Public visualization

Viewing a saved revision (read-only)

a58b20462c124f05b056f75a2a8a9d2d

Making a bar chart

0 stars1🌍 Public
VVaggelisKlt
Last edited May 18, 2020
Created on May 16, 2020
Forked from lets make a map

This example uses d3.csv, d3.scaleLinear, d3.scaleBand, d3.axisLeft, and d3.axisBottom to render a horizontal bar chart of country populations from a CSV file. The data is loaded asynchronously and parsed to numeric population values. Rectangles are appended to an SVG group, positioned with the band scale and sized by the linear scale, while axes are added via selection calls. The chart displays ten countries in descending order of population, with steelblue bars and light styling.

AI-generated description

).