Making a bar chart
✓ Published1🌍 Public
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 descriptionMIT Licensed