Activity6_Task 1
✓ Published0🌍 Public
This example shows a horizontal bar chart of the top 20 countries by 2020 population, using data loaded from a CSV file. The visualization renders with SVG in a React framework, using d3.scaleBand for the categorical y-axis, d3.scaleLinear for the quantitative x-axis, and d3.format to display population values in billions. Each bar includes a native SVG title tooltip. The x-axis and y-axis are custom React components that generate ticks and labels, with blue axis lines and light green bars.
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