Activity6_Task 1
✓ Published1🌍 Public
This example shows a horizontal bar chart of population data for 30 countries in 2020, with country names on the y-axis and population values on the x-axis. The chart renders as an SVG using React components for the axes and marks, with D3 v5 scales (`scaleBand`, `scaleLinear`) and formatting (`format`) to display tick labels in billions. Data is loaded asynchronously from a CSV file via `csv` and `useEffect`, and each bar includes a tooltip showing the formatted population value.
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