Test Barchart
✓ Published0🌍 Public
A horizontal barchart displays the populations of ten countries, labeled in millions, with a title reading "A population walks into a bar." The visualization loads a CSV file and maps each country’s population to a bar’s width using `scaleLinear` and `scaleBand` for the categorical axis. It renders with D3 v6’s `select`, `csv`, `axisLeft`, and `axisBottom` APIs, drawing SVG rectangles and text elements. Axis labels and tick marks are generated via D3’s axis components, with the chart positioned using explicit margin transforms.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed