🌍 Public
Viewing a saved revision (read-only)
cee7ef45ea58404b9777776804fc8d58
D3 init
A minimal bar chart maps country populations from a CSV file to SVG rectangles. The code loads `data.csv` using `d3.csv`, multiplies each population value by 1000, and renders horizontal bars with `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis. It appends rectangles to an SVG element selected via `d3.select`, with dimensions derived from the scales and a fixed margin offset. The example demonstrates a basic D3 v5 data-joining workflow with asynchronous data loading.
AI-generated descriptionD3 minimal visualization