🌍 Public
Viewing a saved revision (read-only)
35fb56e2cee242209bb228a237e90192
act 6 task 1
This example shows a horizontal bar chart of 2020 population data for 30 countries, with a green fill and blue tick lines. Population values are formatted with SI suffixes (e.g., “B” for billions) on the bottom axis. The visualization is built with React and D3 v5, using `scaleBand` for the categorical y-axis, `scaleLinear` for the numeric x-axis, and `format` for tick labels. Data is loaded from a remote CSV via `d3.csv`.
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.