🌍 Public
Viewing a saved revision (read-only)
32f8144e2c9741e1b034a8763d99d141
Making a Barchart
This bar chart displays the populations of ten countries, using horizontal bars sorted by value. Built with D3 v5, it loads data from a CSV file and renders as SVG. The visualization uses `d3.scaleLinear` for the x-axis, `d3.scaleBand` for the categorical y-axis, and `d3.axisTop` and `d3.axisLeft` to generate ticks. Bars are appended as `rect` elements, with population values scaled by a factor of 1,000.
AI-generated description