🌍 Public
Viewing a saved revision (read-only)
d6b07caf2de3484a9c11d66937328f03
Fork of Hello VizHub
This chart displays the population of 20 countries in 2010 as a horizontal bar chart, using the D3v5 scaleBand and scaleLinear APIs to position bars along y- and x-axes. Rendered as SVG via React components, it plots each country’s population with formatted tick labels (e.g., abbreviating millions as “B”) and a tooltip showing the exact value. The data is loaded from a remote CSV file using 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.