Fork of Avtivity-6-Task-1
✓ Published0🌍 Public
A horizontal bar chart displays 2020 population estimates for 30 countries, using a D3 scaleBand for country categories on the y-axis and a scaleLinear for population values on the x-axis. The React app fetches a remote CSV via d3.csv and converts string values to numbers. SVG rectangles render each bar, with axes generated by custom React components, and tick labels formatted using d3.format’s SI notation with "G" replaced by "B" for billions.
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