Population-2010
✓ Published0🌍 Public
This interactive bar chart visualizes the population of 20 countries in 2010, using horizontal bars sorted by country name. The React app loads CSV data via D3’s `csv` function, then renders SVG rectangles positioned with `scaleBand` and `scaleLinear`. Axes are drawn with custom components, and hover tooltips display formatted population values using D3’s `format` function. The chart highlights population magnitudes with a green fill, using a bottom axis with tick labels converted from gigabytes to 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