Skip to main content
100%

act q1 2nd one

✓ Published1🌍 Public
Kkaringusathwika@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from act 6 q1

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes