acitivity6_task1(2)
✓ Published0🌍 Public
This interactive bar chart displays the 2010 population data for 20 countries, ranked from highest to lowest. Built with React and D3 v5, it renders SVG rectangles whose lengths are scaled linearly by population. The chart uses D3's `scaleBand` for categorical country labels, `scaleLinear` for quantitative values, and a custom number formatter that abbreviates large figures with 'B' for billions. Data loads remotely as CSV through D3's `csv` function, with tooltips showing formatted population values.
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