🌍 Public
Viewing a saved revision (read-only)
8598996a62114a99828d3c585428f3a0
Making a bar chart
A horizontal bar chart displays population estimates for ten countries from a CSV file, with each bar’s length proportional to population. The visualization uses d3.csv to load data, d3.scaleLinear for the x-axis, d3.scaleBand for the y-axis, and d3.axisLeft and d3.axisBottom for ticks. Bars are appended as SVG rectangles with steelblue fill, positioned using the scales’ output ranges.
AI-generated description