Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

data

Public visualization

Viewing a saved revision (read-only)

07f2ff9148714cd2867bd934cf8daf76

data

0 stars1🌍 Public
Ggavriel-binshtok
Last edited Nov 25, 2019
Created on Nov 14, 2019

This example shows a bar chart of population data for the top ten countries, with each bar’s width scaled to its population. The visualization uses D3 v5 to load CSV data, parse the population values, and render SVG rectangles. It relies on `d3.scaleLinear` for the x-axis scaling and `d3.csv` for data ingestion, with the SVG dimensions defined in the HTML. The bars are appended directly to the svg selection, though the y-axis positioning is incomplete.

AI-generated description