🌍 Public
Viewing a saved revision (read-only)
ef69402629d846b1a8021ec6bfdbd338
Bar Chart
A horizontal bar chart displays the top 10 countries by population in the year 2000, with bars extending from a zero baseline. The chart loads a CSV dataset from a GitHub gist and uses D3 v7 to parse the data, sort it in descending order, and render the bars as SVG rectangles using `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis. Hovering over a bar changes its fill color.
AI-generated description