Project7 Interactable Switch and If bar chart
✓ Published0🌍 Public
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 descriptionMIT Licensed