Skip to main content
100%

activity 6_Task 1

✓ Published1🌍 Public
Ppadiginetivishnupriya@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart comparing the populations of the top 20 countries in 2010, with country names on the y-axis and population values on the x-axis. The data is loaded as CSV via `d3.csv` from a GitHub repository. React renders the SVG, while D3 v5 scales (`scaleBand` and `scaleLinear`), axes, and tick formatting (`format('.2s')`) handle the layout. Tooltips appear on hover using native SVG `<title>` elements.

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