Activity 6
✓ Published0🌍 Public
This horizontal bar chart displays the population of 30 countries in 2020, ordered by country name, with green bars and blue axis lines. The visualization loads a CSV file from a GitHub gist using D3's `csv` function, then renders the data as SVG rectangles via React. D3's `scaleBand` and `scaleLinear` position the bars, while custom `AxisBottom` and `AxisLeft` components generate ticks using D3's `ticks` and `domain` methods. Population values are formatted with D3's `format` function using the SI format to abbreviate large numbers.
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