Skip to main content
100%

Fork of Task6_Question1_2_PR

✓ Published0🌍 Public
Ppravallikaratankanthkatragadda@my.unt.edu
Last edited Apr 14, 2024
Created on Apr 14, 2024

This visualization shows the population of 20 countries in 2010, using horizontal bars ranked by population size. Data is loaded from a CSV file via `d3.csv` and processed as an ES6 module with the `useData` hook. The React app renders an SVG chart, mapping categorical country names with `scaleBand` on the y-axis and a linear population scale on the x-axis. D3 v5 provides formatting, while custom Axis components generate styled ticks. The bar widths encode population values, with a tooltip displaying the formatted measure on hover.

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