Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity_6_question_1.2

Public visualization

Viewing a saved revision (read-only)

f8ed7817bf014205a7e5e3c568dd26bd

activity_6_question_1.2

0 stars0🌍 Public
JJaswanthkota@my.unt.edu
Last edited Oct 23, 2024
Created on Oct 23, 2024

This bar chart displays the populations of 20 countries in 2010, sorted by country name. The visualization uses React with D3 v5, employing `scaleBand` for the y-axis, `scaleLinear` for the x-axis, and SVG `rect` marks for the bars. Data is loaded via `csv` from a GitHub-hosted CSV file, with population values converted from thousands. The chart includes formatted tick labels using `format('.2s')`, replacing 'G' with 'B' for billions, and tooltips generated through 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.