🌍 Public
Viewing a saved revision (read-only)
2f75b214086e4341abed78f9b049ed78
Activity 6_Task 1
This D3.js bar chart displays the population of 30 countries in 2020, using horizontal bars on a Cartesian grid. The visualization leverages React components and D3 version 5's `scaleBand` for the categorical y-axis and `scaleLinear` for the numerical x-axis. Data is loaded via a CSV URL providing population figures, which are formatted using D3's `format` function to display values in billions. The SVG rendering includes blue tick lines, green bars, and a labeled x-axis, with tooltips showing formatted population values on hover.
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.