🌍 Public
Activity
This bar chart displays the 2020 populations of 30 countries, sorted by country name, using horizontal bars with a green fill and blue tick marks. The React app loads CSV data from a GitHub URL via `d3.csv`, transforms raw numbers by multiplying by 1000, and renders with `scaleBand` and `scaleLinear`. Axis labels use D3’s `format('.2s')` to abbreviate values, and each bar includes a native SVG `<title>` tooltip. The layout is static, with margins and dimensions fixed in the code.
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
Comments
Sign in to join the discussion.