Skip to main content
100%

Activity6_Q1.2

✓ Published0🌍 Public
LLakshmiDeepikaPagadala@my.unt.edu
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

A horizontal bar chart displays the top 20 countries by 2010 population, sourced from a CSV file loaded with `d3.csv`. React renders SVG rectangles whose widths are scaled linearly by population via `scaleLinear`, while `scaleBand` positions categorical country labels on the y-axis. Axis components use D3 tick formatting with `.2s` to abbreviate billions, and each bar includes a native SVG `<title>` tooltip showing the formatted value.

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