🌍 Public
Viewing a saved revision (read-only)
7e09146a1b824bda99ac9c7b8b877da4
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