🌍 Public
Viewing a saved revision (read-only)
fc4cc100b97f4b568c17254c7251c0e9
Activity 6 task 1
This D3 v5 bar chart displays the population of ten countries in the year 2000, with a horizontal bar for each country. The visualization uses a linear scale for population and a band scale for country names, with bars colored green and tick marks in blue. Data is loaded from a CSV file using the `d3.csv` function and parsed to convert the population values. The React framework renders the SVG components, with separate modules for the bottom axis, left axis, and the marks themselves.
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.