act q1 2nd one
✓ Published1🌍 Public
This example shows a horizontal bar chart comparing the 2010 populations of 20 countries, sorted by country name. The visualization loads CSV data from a GitHub gist and uses D3 v5’s `scaleBand` and `scaleLinear` to position bars, while React renders the SVG elements. Axes are drawn with custom `AxisBottom` and `AxisLeft` components, and each bar includes a native SVG `<title>` tooltip. The chart labels population values in billions using D3’s `format` function with SI prefixes.
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