Fork of Activity6_Task1
✓ Published0🌍 Public
A horizontal bar chart displays the 2020 population for the top 30 countries, using green bars with blue axis ticks. The chart is built with React and D3 v5, where d3.scaleBand maps country names to the y-axis and d3.scaleLinear maps population values to the x-axis, with a custom tick formatter converting large numbers to billions. Data is loaded from a remote CSV via d3.csv, and tooltips show each bar's exact population value when hovered.
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