Activity6_Task-1
✓ Published0🌍 Public
This interactive horizontal bar chart displays the 2010 population estimates for a selection of countries, ranked along the y-axis with bars extending along the x-axis. It uses React to render an SVG graphic, built on D3 v5. The chart fetches its data from a CSV file via `d3.csv`, using `d3.scaleBand` and `d3.scaleLinear` to map country names and population values. Bar tooltips and axis labels are formatted with `d3.format`'s `.2s` notation, converting values like 'G' to 'B'.
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