🌍 Public
Viewing a saved revision (read-only)
37ffeb14908940cab91b2444c653dc04
Bar chart
This bar chart displays the population of ten countries, sourced from UN data, with values scaled by a factor of one thousand. It uses D3 v5 to load the CSV dataset and render SVG rectangles, with `d3.scaleLinear` mapping population to bar width and `d3.scaleBand` positioning countries along the vertical axis. The chart includes axis labels generated by `d3.axisLeft` and `d3.axisBottom`, and applies a steelblue fill to bars with padding between them for clarity.
AI-generated descriptionFirst barchat by D3.js Dataset source UN