Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_q1_2

Public visualization

Viewing a saved revision (read-only)

1c7eb6176b74465bb7b3a0975b13dd0d

Activity6_q1_2

0 stars0🌍 Public
Ssrilekhasridasyam@my.unt.edu
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

This bar chart displays the population of 20 countries in 2010, sorted by country name along the vertical axis. Each bar’s length encodes the population value, with a formatted x-axis label converting SI units (e.g., “1.2B”) for readability. The visualization is built with React and D3 v5, using `scaleBand` for the categorical axis and `scaleLinear` for the population scale. Data is loaded asynchronously from a CSV file via `d3.csv`, and SVG rectangles render the marks with a native tooltip showing the population 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.