Activity 6_Q 1.2
✓ Published0🌍 Public
This horizontal bar chart displays the populations of the 20 most populous countries in the year 2000, sorted in descending order. Built with D3 v5, it uses `scaleLinear` for the x-axis and `scaleBand` for the categorical y-axis. The chart labels the axes "Population-2010" and includes a title, with tick marks styled via CSS. Data is loaded from a CSV file using `csv()` and formatted with `format('.3s')` to abbreviate large numbers.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed