🌍 Public
Viewing a saved revision (read-only)
78b907a49cee4de58d101ef7a7c6fbb1
Making a Bar Chart
This example displays a horizontal bar chart of population data for ten countries, ordered by descending population size. The visualization uses D3 v5 with an SVG rendering approach, employing `scaleLinear` for the x-axis, `scaleBand` for the categorical y-axis, and `axisLeft` and `axisBottom` for the axes. Data is loaded asynchronously from a CSV file using `csv`, then parsed and mapped to rectangular bars whose widths are proportional to each country’s population.
AI-generated description