Activity6Question1
✓ Published0🌍 Public
This horizontal bar chart displays the top 10 countries by population in 2020, using a dataset loaded as CSV from GitHub via D3’s `csv` function. Built with React and D3 v5, it renders an SVG with categorical bars (using `scaleBand` for the y-axis) and a linear x-axis (via `scaleLinear`), formatted with D3’s `format` for SI units. Interactive hover tooltips show the population values through SVG `<title>` elements. The axes and tick marks are styled with blue lines and gray text, with bars colored light green, all wrapped in a Poppins font layout.
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