🌍 Public
Viewing a saved revision (read-only)
a7a2484517bb449cb08f6d18bbff803c
Making a bar chart
This example displays a horizontal bar chart of population counts for the ten most populous countries, using data from a CSV file. The chart encodes population as bar width and country names along the vertical axis, with axes generated using `d3.axisLeft` and `d3.axisBottom`. It employs `d3.csv` for data loading, `d3.scaleLinear` and `d3.scaleBand` for scaling, and appends SVG `rect` elements to render the bars. The source data is loaded from `data.csv`.
AI-generated description