🌍 Public
Viewing a saved revision (read-only)
96f751e488ff4ba0a291f8d3f3aa5d3f
Activity6_task1
This example displays a horizontal bar chart of the top ten most populous countries in the year 2000, ranked by population. The chart, rendered as an SVG, uses D3 v5 to load CSV data from a remote gist and sorts it by the 2000 population field. The visualization consists of green bars drawn via `d3.selectAll('rect')` and `d3.scaleBand` for the categorical country axis, while a linear scale (`d3.scaleLinear`) maps population values to bar widths. Axis ticks are formatted with `d3.axisBottom` and `d3.format('.2s')` for compact notation.
AI-generated description