🌍 Public
Viewing a saved revision (read-only)
2656e9d7485c403ea6d0c88f6a56ff9a
Project7 Interactable Switch and If bar chart
This horizontal bar chart ranks the ten most populous countries using D3 v6, with population data loaded from a CSV file. Bars are rendered as SVG rectangles whose lengths are scaled linearly by population values, while country names are positioned along a band scale. The visualization clearly shows China and India leading, followed by the United States, and encodes the data through both the `scaleLinear` and `scaleBand` scales. Axes are generated via `axisLeft` and `axisBottom`, and the chart is drawn within an SVG canvas.
AI-generated description