Bar Chart
✓ Published1🌍 Public
A horizontal bar chart displays population estimates for ten countries, with bar length encoding each nation’s population value. The visualization uses D3 v5’s `scaleLinear` for the x-axis and `scaleBand` for the categorical y-axis, rendering SVG rectangles via `svg.selectAll('rect')`. Data is loaded from a CSV file using `d3.csv`, with population values multiplied by 100 during preprocessing. The chart is fully responsive to the SVG’s width and height attributes, with no axes or labels added.
AI-generated descriptionMIT Licensed