🌍 Public
Viewing a saved revision (read-only)
5f63677f8c1c417d93a6d3ad2d8f9071
custom axis
This example shows a bar chart of country populations using a linear y-axis and a categorical x-axis. The chart uses D3 v5 to load population data from a CSV file, scales it with `scaleLinear` and `scaleBand`, and renders bars as SVG rectangles with orange fill. An `axisBottom` and `axisLeft` are used to create the custom axes, and clicking a bar logs its data to the console.
AI-generated description