Fork of Activity6_population_question1
✓ Published3🌍 Public
This example shows a bar chart of the top 10 most populous countries in the year 2000, with bars sorted in descending order and population values on a linear scale. The data is fetched from a GitHub-hosted CSV file, parsed with `d3.csvParse`, and rendered as an SVG using D3 scales (`scaleBand`, `scaleLinear`) and axes (`axisBottom`, `axisLeft`). Bars are colored steelblue and change to orange on hover, with rotating country labels for readability.
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