🌍 Public
Viewing a saved revision (read-only)
b62216fa21eb42f28141efe71765ed94
Making a bar chart!
This example shows a simple bar chart of country populations from a CSV file; the length of each bar encodes the population number. The chart is rendered as SVG, with each bar’s width mapped from the data’s maximum value using D3’s `scaleLinear` and `max` functions. The code reads data with `csv` and appends `rect` elements to the SVG canvas.
AI-generated description