Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_6

Public visualization

Viewing a saved revision (read-only)

a0386d955b8e4355b2e46ed4f515244d

Activity_6

0 stars0🌍 Public
Ssanjanadadi19@gmail.com
Last edited Mar 30, 2024
Created on Mar 30, 2024
Forked from Hello VizHub

This horizontal bar chart displays the populations of 30 countries in 2020, sorted by country name along the y-axis and population size along the x-axis. Built with React and D3 v5, it uses `scaleBand` for the categorical axis, `scaleLinear` for the numeric scale, and SVG `rect` elements for bars. Data loads from a CSV via the `csv` function, with population values converted from thousands, and axes are rendered by custom React components.

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.